aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-04-27 13:19:35 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-04-27 13:19:35 +0200
commit3075d2fecc9f5bb780bb478c0851a704c7f9b392 (patch)
treefe6ba5564553df4aa5643daa87e6906725f237f6 /tests
parent36840fb2e44b272725b6fe89a2b57b984720bfeb (diff)
parent2353ad11f2afe213e407842a9a9e1533c0de57b0 (diff)
downloadforums-3075d2fecc9f5bb780bb478c0851a704c7f9b392.tar
forums-3075d2fecc9f5bb780bb478c0851a704c7f9b392.tar.gz
forums-3075d2fecc9f5bb780bb478c0851a704c7f9b392.tar.bz2
forums-3075d2fecc9f5bb780bb478c0851a704c7f9b392.tar.xz
forums-3075d2fecc9f5bb780bb478c0851a704c7f9b392.zip
Merge pull request #44 from phpbb/ticket/security/235
Ticket/security/235 Wildcard char count in search
Diffstat (limited to 'tests')
-rw-r--r--tests/search/native_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/search/native_test.php b/tests/search/native_test.php
index 29d0d0a8d3..0e6f719cef 100644
--- a/tests/search/native_test.php
+++ b/tests/search/native_test.php
@@ -70,7 +70,7 @@ class phpbb_search_native_test extends phpbb_search_test_case
'ba*az',
'all',
true,
- array('\'ba%az\''),
+ array(4),
array(),
array(),
),
@@ -78,7 +78,7 @@ class phpbb_search_native_test extends phpbb_search_test_case
'ba*z',
'all',
true,
- array('\'ba%z\''),
+ array(), // <= 3 chars after removing *
array(),
array(),
),
@@ -86,7 +86,7 @@ class phpbb_search_native_test extends phpbb_search_test_case
'baa* baaz*',
'all',
true,
- array('\'baa%\'', '\'baaz%\''),
+ array('\'baa%\'', 4),
array(),
array(),
),
@@ -94,7 +94,7 @@ class phpbb_search_native_test extends phpbb_search_test_case
'ba*z baa*',
'all',
true,
- array('\'ba%z\'', '\'baa%\''),
+ array('\'baa%\''), // baz is <= 3 chars, only baa* is left
array(),
array(),
),