diff options
author | friendica <info@friendica.com> | 2011-12-06 19:51:19 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-12-06 19:51:19 -0800 |
commit | 341fcce75ec8d16538eec6ebcdfbdd00711c6638 (patch) | |
tree | e88f1bbb923538fc218a3baefbc819ddd6eaec50 /mod/network.php | |
parent | 7eba8adbf7ce1656b9c85f02b21fe46303b219e7 (diff) | |
download | volse-hubzilla-341fcce75ec8d16538eec6ebcdfbdd00711c6638.tar.gz volse-hubzilla-341fcce75ec8d16538eec6ebcdfbdd00711c6638.tar.bz2 volse-hubzilla-341fcce75ec8d16538eec6ebcdfbdd00711c6638.zip |
preg_quote search strings
Diffstat (limited to 'mod/network.php')
-rw-r--r-- | mod/network.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/network.php b/mod/network.php index 2a3db597e..3df8a2105 100644 --- a/mod/network.php +++ b/mod/network.php @@ -364,8 +364,8 @@ function network_content(&$a, $update = 0) { if(x($_GET,'search')) { $search = escape_tags($_GET['search']); $sql_extra .= sprintf(" AND ( `item`.`body` REGEXP '%s' OR `item`.`tag` REGEXP '%s' ) ", - dbesc($search), - dbesc('\\]' . $search . '\\[') + dbesc(preg_quote($search)), + dbesc('\\]' . preg_quote($search) . '\\[') ); } |