diff options
author | ioguix | 2007-10-05 12:34:42 +0000 |
---|---|---|
committer | ioguix | 2007-10-05 12:34:42 +0000 |
commit | 87757ec3720e3a7d5f1bce809e5a45957e565321 (patch) | |
tree | 6beb728deb9d2df76cf04f55f43356235a4bb003 | |
parent | 1951a16dae01f639f0f3104e4c9f5ee3965955a2 (diff) |
fix a bug in adodb, reported by Pascal CourtonneREL_4-0
-rw-r--r-- | libraries/adodb/drivers/adodb-postgres64.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/adodb/drivers/adodb-postgres64.inc.php b/libraries/adodb/drivers/adodb-postgres64.inc.php index b4a045c6..8bf91df9 100644 --- a/libraries/adodb/drivers/adodb-postgres64.inc.php +++ b/libraries/adodb/drivers/adodb-postgres64.inc.php @@ -49,7 +49,7 @@ function adodb_addslashes($s) {
$len = strlen($s);
if ($len == 0) return "''";
- if (strncmp($s,"'",1) === 0 && substr(s,$len-1) == "'") return $s; // already quoted
+ if (strncmp($s,"'",1) === 0 && substr($s,$len-1) == "'") return $s; // already quoted
return "'".addslashes($s)."'";
}
|