Index: .
===================================================================
--- .	(revision 21407)
+++ .	(working copy)
@@ -907,7 +907,7 @@
     */
     function escapeString( $str )
     {
-        return mysql_real_escape_string( $str );
+        return mysql_real_escape_string( $str, $this->DBConnection );
     }
 
     /*!
