summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-10-01 22:41:22 +0200
committerLoui Chang <louipc.ist@gmail.com>2009-10-01 22:41:22 +0200
commit21e0ff2207d5262ce6f8339193e39f64fe982a4b (patch)
tree6d5bc0f9075f6d0939aaa7f15291404820d826ee /web
parent9260e1c3280bd065ffdcd51890c0d7220c5546ec (diff)
downloadaur-21e0ff2207d5262ce6f8339193e39f64fe982a4b.tar.gz
aur-21e0ff2207d5262ce6f8339193e39f64fe982a4b.tar.xz
Fix json info output.
Commit 325347a introduced a regression causing an improper database query. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web')
-rw-r--r--web/lib/aurjson.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aurjson.class.php b/web/lib/aurjson.class.php
index 5794ebc3..251203af 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));
}