aboutsummaryrefslogtreecommitdiffstats
path: root/qsearch.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-09-19 03:06:16 +0000
committerrvelices <rv-github@modusoptimus.com>2007-09-19 03:06:16 +0000
commitbb07324f762708142f2158da1a8060f9f812c28b (patch)
tree98f93531d43dd10f31816e14e5b1827bee62eaa2 /qsearch.php
parentb34b7c6b28a7d34488f4ca5947a618be10028b3d (diff)
- fix: quick search error if the query term contained " or '
- optimized sql query in sync_users (called every time on admin page) - a lot faster when #user_cache_categories is big - added function Template->delete_block_vars (opposite of assign_block_vars) git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2094 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--qsearch.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/qsearch.php b/qsearch.php
index a7fc1d956..2635ea31a 100644
--- a/qsearch.php
+++ b/qsearch.php
@@ -43,7 +43,7 @@ $query ='
INSERT INTO '.SEARCH_TABLE.'
(rules, last_seen)
VALUES
- (\''.serialize($search).'\', NOW() )
+ (\''.addslashes(serialize($search)).'\', NOW() )
;';
pwg_query($query);