From 544aae543108668866678baca1ccd1d61cd70be3 Mon Sep 17 00:00:00 2001 From: Paul Arthur Date: Sat, 2 Feb 2013 18:56:14 -0500 Subject: Fix Dba::quote() It's still ugly, but it won't get too greedy. --- lib/class/dba.class.php | 4 ++-- 1 file 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); } /** -- cgit