opnsense-ports/security/base/files/patch-includes__base_db.inc.php
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
401 B
PHP

--- ./includes/base_db.inc.php.orig 2010-03-05 16:06:18.000000000 +0100
+++ ./includes/base_db.inc.php 2010-04-11 23:52:13.000000000 +0200
@@ -209,7 +209,7 @@
/* ** Begin DB specific SQL fix-up ** */
if ($this->DB_type == "mssql")
{
- $sql = eregi_replace("''", "NULL", $sql);
+ $sql = preg_replace("/''/i", "NULL", $sql);
}
if ($this->DB_type == "oci8")