From 21e0ff2207d5262ce6f8339193e39f64fe982a4b Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Thu, 1 Oct 2009 16:41:22 -0400 Subject: Fix json info output. Commit 325347a introduced a regression causing an improper database query. Signed-off-by: Loui Chang --- web/lib/aurjson.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php index 5794ebc..251203a 100644 --- a/web/lib/aurjson.class.php +++ b/web/lib/aurjson.class.php @@ -134,7 +134,7 @@ class AurJSON { if(get_magic_quotes_gpc()) { $pqdata = stripslashes($pqdata); } - $query_stub = printf("Name=\"%s\"", + $query_stub = sprintf("Name=\"%s\"", mysql_real_escape_string($pqdata)); } -- cgit v1.2.3-70-g09d2