aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-09 15:11:47 -0800
committerFriendika <info@friendika.com>2010-11-09 15:11:47 -0800
commitf7c0480f1b69c44d5daf47d343aaba44ebd26ec2 (patch)
tree20765a582cf3e781cf670103686f31e68686081d /include/dba.php
parentc50f491c3dd6df917c86d8074ebfdba22f96558d (diff)
downloadvolse-hubzilla-f7c0480f1b69c44d5daf47d343aaba44ebd26ec2.tar.gz
volse-hubzilla-f7c0480f1b69c44d5daf47d343aaba44ebd26ec2.tar.bz2
volse-hubzilla-f7c0480f1b69c44d5daf47d343aaba44ebd26ec2.zip
use raw db queries wherever query items could contain '%'
Diffstat (limited to 'include/dba.php')
-rw-r--r--include/dba.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/dba.php b/include/dba.php
index 044263194..54084d835 100644
--- a/include/dba.php
+++ b/include/dba.php
@@ -134,6 +134,16 @@ function q($sql) {
return $ret;
}}
+// raw db query, no arguments
+
+if(! function_exists('dbq')) {
+function dbq($sql) {
+
+ global $db;
+ $ret = $db->q($sql);
+ return $ret;
+}}
+
// Caller is responsible for ensuring that any integer arguments to
// dbesc_array are actually integers and not malformed strings containing