Skip to content
Snippets Groups Projects
Commit 3b065d4d authored by Martin Sandsmark's avatar Martin Sandsmark
Browse files

more addslashes magic sauce

parent 1f46d0fc
Branches
No related tags found
No related merge requests found
...@@ -478,7 +478,7 @@ class OC_OCS { ...@@ -478,7 +478,7 @@ class OC_OCS {
//TODO: prepared statements, locking tables, fancy stuff, error checking/handling //TODO: prepared statements, locking tables, fancy stuff, error checking/handling
$user=OC_OCS::checkpassword(); $user=OC_OCS::checkpassword();
$result=OC_DB::select("select count(*) as co from {$CONFIG_DBTABLEPREFIX}privatedata where key = '".$key."'"); $result=OC_DB::select("select count(*) as co from {$CONFIG_DBTABLEPREFIX}privatedata where key = '".addslashes($key)."'");
$totalcount=$result[0]['co']; $totalcount=$result[0]['co'];
OC_DB::free_result($result); OC_DB::free_result($result);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment