diff options
author | ioguix | 2007-10-05 13:28:30 +0000 |
---|---|---|
committer | ioguix | 2007-10-05 13:28:30 +0000 |
commit | 87dd8310f35ac28d77398dd8c95fcafa32ceeae9 (patch) | |
tree | 95e93739a3e3560555e8312503d466e3add157ad | |
parent | bcc62d8f31144d758c15c246d0daaa5eda7f31dc (diff) |
fix a bug in adodb, reported by Pascal Courtonne
-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 aabe63ad..eedcec42 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)."'"; } |