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:
@@ -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',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user