mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Additional checks added for similar URL matches.
This commit is contained in:
@@ -69,6 +69,7 @@
|
|||||||
0 => 'FRONTPAGE',
|
0 => 'FRONTPAGE',
|
||||||
1 => 'page.php?3!',
|
1 => 'page.php?3!',
|
||||||
2 => '/my-sef-url!',
|
2 => '/my-sef-url!',
|
||||||
|
3 => '/news/?page=',
|
||||||
),
|
),
|
||||||
'jumbotron_full' =>
|
'jumbotron_full' =>
|
||||||
array (
|
array (
|
||||||
@@ -90,6 +91,7 @@
|
|||||||
2 => 'page.php$', // <-- $ = script name match
|
2 => 'page.php$', // <-- $ = script name match
|
||||||
3 => '/user/settings?',
|
3 => '/user/settings?',
|
||||||
4 => 'script.php$',
|
4 => 'script.php$',
|
||||||
|
5 => '/news/?bla',
|
||||||
),
|
),
|
||||||
'script_match' =>
|
'script_match' =>
|
||||||
array(
|
array(
|
||||||
@@ -119,11 +121,13 @@
|
|||||||
14 => array('url' => SITEURL."forum/index.php", 'script' => "/index.php", 'expected' => 'other_layout'),
|
14 => array('url' => SITEURL."forum/index.php", 'script' => "/index.php", 'expected' => 'other_layout'),
|
||||||
15 => array('url' => SITEURL."my-chapter/my-title", 'script' => "/page.php", 'expected' => 'other_layout'),
|
15 => array('url' => SITEURL."my-chapter/my-title", 'script' => "/page.php", 'expected' => 'other_layout'),
|
||||||
16 => array('url' => SITEURL."my-sef-url", 'script' => '/index.php', 'expected' => 'jumbotron_home'),
|
16 => array('url' => SITEURL."my-sef-url", 'script' => '/index.php', 'expected' => 'jumbotron_home'),
|
||||||
17 => array('url' => SITEURL."/user/settings?id=1", 'script' => '/usersettings.php', 'expected' => 'other_layout'),
|
17 => array('url' => SITEURL."user/settings?id=1", 'script' => '/usersettings.php', 'expected' => 'other_layout'),
|
||||||
18 => array('url' => SITEURL."/user/Tijn", 'script' => '/user.php', 'expected' => 'jumbotron_sidebar_right'),
|
18 => array('url' => SITEURL."user/Tijn", 'script' => '/user.php', 'expected' => 'jumbotron_sidebar_right'),
|
||||||
19 => array('url' => SITEURL."user.php?id.1", 'script' => '/user.php', 'expected' => 'jumbotron_sidebar_right'),
|
19 => array('url' => SITEURL."user.php?id.1", 'script' => '/user.php', 'expected' => 'jumbotron_sidebar_right'),
|
||||||
20 => array('url' => SITEURL."pluginpage/", 'script' => '/myplugin/index.php', 'expected' => 'script_match'),
|
20 => array('url' => SITEURL."pluginpage/", 'script' => '/myplugin/index.php', 'expected' => 'script_match'),
|
||||||
|
21 => array('url' => SITEURL."news/?page=", 'script' => '/news.php', 'expected' => 'jumbotron_home'),
|
||||||
|
22 => array('url' => SITEURL."news/my-news-title", 'script' => '/news.php', 'expected' => 'jumbotron_sidebar_right'),
|
||||||
|
23 => array('url' => SITEURL."news/?bla", 'script' => '/news.php', 'expected' => 'other_layout'),
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user