summaryrefslogtreecommitdiffstats
path: root/lib/class/dba.class.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2013-02-02 18:56:14 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2013-02-02 18:56:14 -0500
commit544aae543108668866678baca1ccd1d61cd70be3 (patch)
treee86abf5082c70b27001913ae3c82724b327a6ed4 /lib/class/dba.class.php
parent4cbb5db6dfcf190a49bb3feac945059565554927 (diff)
downloadampache-544aae543108668866678baca1ccd1d61cd70be3.tar.gz
ampache-544aae543108668866678baca1ccd1d61cd70be3.tar.bz2
ampache-544aae543108668866678baca1ccd1d61cd70be3.zip
Fix Dba::quote()
It's still ugly, but it won't get too greedy.
Diffstat (limited to 'lib/class/dba.class.php')
-rw-r--r--lib/class/dba.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/class/dba.class.php b/lib/class/dba.class.php
index dce5708f..97eb1d81 100644
--- a/lib/class/dba.class.php
+++ b/lib/class/dba.class.php
@@ -110,8 +110,8 @@ class Dba {
*/
public static function escape($var) {
$var = self::dbh()->quote($var);
- // This is slightly ugly
- return trim($var, "'");
+ // This is slightly less ugly than it was, but still ugly
+ return substr($var, 1, -1);
}
/**