All pastes #73159 Raw Edit

Unnamed

public text v1 · immutable
#73159 ·published 2006-06-27 14:49 UTC
rendered paste body
[root@tadpole /htdocs/webdata/joomla]# cat database.patch
 --- test1/includes/database.php 2006-06-27 10:21:18.000000000 -0400
+++ test2/includes/database.php 2006-06-27 09:27:59.000000000 -0400
@@ -126,7 +126,7 @@
        * @return string
        */        function getEscaped( $text ) {
-               return mysql_escape_string( $text );
+               return mysql_real_escape_string( $text );
        }
        /**
        * Get a quoted database escaped string