Ticket #1963 (closed Bugs: fixed)

Opened 6 years ago

Last modified 3 years ago

mysql_real_escape_string not available when running on sqlite3 mode

Reported by: diego_iastrubni Assigned to:
Priority: major Milestone: 2.2
Component: Core Version: 2.3-branch
Keywords: sqlite3 Cc:
Confirmation: Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

Some modules (time conditions for example) use mysql_real_escape_string() to sanitize strings before sent to the SQL server. This is very important, however this specific function is not available on systems running with SQLite3 or pgsql.

I am attaching a working patch, tested on our systems.

Attachments

fix-mysql-real-escape-string.dpatch (1.6 kB) - added by diego_iastrubni on 05/29/07 23:52:24.
fix for this problem (patch against the 2.2.1 release)

Change History

05/29/07 23:52:24 changed by diego_iastrubni

  • attachment fix-mysql-real-escape-string.dpatch added.

fix for this problem (patch against the 2.2.1 release)

06/09/07 05:41:43 changed by p_lindheimer

  • version changed from 2.2.1 to 2.3-branch.

06/27/07 05:08:50 changed by diego_iastrubni

  • status changed from new to closed.
  • resolution set to fixed.

fixed by revision:4238

09/20/10 09:46:46 changed by mbrevda

(In [10294]) re closes #4545 undose re #1963 - remove mysql_real_escape_string function from header.php