--- MDB2/Driver/mssql.php.orig 2009-05-23 14:51:09.000000000 -0400
+++ MDB2/Driver/mssql.php 2009-05-23 14:54:55.000000000 -0400
@@ -654,6 +654,27 @@
return $this->queryOne($query, 'integer');
}
// }}}
+ // {{{ function escape($text)
+
+ /**
+ * Quotes a string so it can be safely used in a query. It will quote
+ * the text so it can safely be used within a query.
+ * This overridden subclass also escapes line-folding sequences
+ *
+ * @param string the input string to quote
+ * @param bool escape wildcards
+ *
+ * @return string quoted string
+ *
+ * @access public
+ */
+ function escape($text, $escape_wildcards = false)
+ {
+ $text = parent::escape($text, $escape_wildcards);
+ $text = preg_replace('/\\(\r\n|\r|\n)/','\\\\$1',$text);
+ return $text;
+ }
+ // }}}
}
// }}}
// {{{ Class MDB2_Result_mssql