diff options
author | Dhruv <dhruv.goel92@gmail.com> | 2013-05-04 18:56:52 +0530 |
---|---|---|
committer | Dhruv <dhruv.goel92@gmail.com> | 2013-05-04 20:11:12 +0530 |
commit | bfdc6e19300da8fa62d8661fcbd92548a2d2cf97 (patch) | |
tree | d52a45825c294aeb99af04d960cab3c2f76b7c38 /phpBB/includes | |
parent | 3a30bd2753ab56dd5035ebba8cf42850e41c3728 (diff) | |
download | forums-bfdc6e19300da8fa62d8661fcbd92548a2d2cf97.tar forums-bfdc6e19300da8fa62d8661fcbd92548a2d2cf97.tar.gz forums-bfdc6e19300da8fa62d8661fcbd92548a2d2cf97.tar.bz2 forums-bfdc6e19300da8fa62d8661fcbd92548a2d2cf97.tar.xz forums-bfdc6e19300da8fa62d8661fcbd92548a2d2cf97.zip |
[ticket/11288] fix regex in postgres
Postgres search backend now uses updated regex being used by
mysql search backend.
PHPBB3-11288
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/search/fulltext_postgres.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/search/fulltext_postgres.php b/phpBB/includes/search/fulltext_postgres.php index eeb628b18f..5080587681 100644 --- a/phpBB/includes/search/fulltext_postgres.php +++ b/phpBB/includes/search/fulltext_postgres.php @@ -214,7 +214,7 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base { if ($terms == 'all') { - $match = array('#\sand\s#iu', '#\sor\s#iu', '#\snot\s#iu', '#\+#', '#-#', '#\|#'); + $match = array('#\sand\s#iu', '#\sor\s#iu', '#\snot\s#iu', '#(^|\s)\+#', '#(^|\s)-#', '#(^|\s)\|#'); $replace = array(' +', ' |', ' -', ' +', ' -', ' |'); $keywords = preg_replace($match, $replace, $keywords); |