1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/16138] Eliminate redundant parameters from board URLs

Rebase to 3.3.x

PHPBB3-16138
This commit is contained in:
v12mike
2019-12-02 07:34:22 -05:00
committed by Marc Alexander
parent 314ab17edd
commit adacf21edb
39 changed files with 276 additions and 222 deletions

View File

@@ -48,29 +48,29 @@ class phpbb_build_url_test extends phpbb_test_case
'phpBB/index.php?',
),
array(
'viewtopic.php?t=5&f=4',
'viewtopic.php?t=5',
false,
'phpBB/viewtopic.php?t=5&f=4',
'phpBB/viewtopic.php?t=5',
),
array(
'viewtopic.php?f=2&style=1&t=6',
'viewtopic.php?style=1&t=6',
'f',
'phpBB/viewtopic.php?style=1&t=6',
),
array(
'viewtopic.php?f=2&style=1&t=6',
'viewtopic.php?style=1&t=6',
array('f', 'style', 't'),
'phpBB/viewtopic.php?',
),
array(
'http://test.phpbb.com/viewtopic.php?f=2&style=1&t=6',
'http://test.phpbb.com/viewtopic.php?style=1&t=6',
array('f', 'style', 't'),
'http://test.phpbb.com/viewtopic.php?',
),
array(
'posting.php?f=2&mode=delete&p=20%22%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E',
'posting.php?mode=delete&p=20%22%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E',
false,
'phpBB/posting.php?f=2&mode=delete&p=20%22%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E',
'phpBB/posting.php?mode=delete&p=20%22%3Cscript%3Ealert%281%29%3B%3C%2Fscript%3E',
)
);
}