POG_Base should use mysql_real_escape_string with Database Connection

Bug #811012 reported by Loksly
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PHP Object Generator
New
Undecided
Unassigned

Bug Description

If you give the second parameter it might not use the right connection
(it will use the last opened connection or the default one specified at php.ini).
Here is the "diff -Bub" patch.

--- class.pog_base.php 2092-08-05 00:00:00.000000000 +0200
+++ class.pog_base.php 2011-07-15 13:28:20.000000000 +0200
@@ -56,7 +56,7 @@
   {
    return base64_encode($text);
   }
- return mysql_real_escape_string($text);
+ return mysql_real_escape_string($text,Database::Connect());
  }

  /**

Tags: escape pogbase
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.