1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-21 12:59:53 +01:00

Additional checks added for similar URL matches.

This commit is contained in:
Cameron 2019-07-02 09:01:54 -07:00
parent ed5fdfc070
commit 751f2383ec

View File

@ -69,6 +69,7 @@
0 => 'FRONTPAGE',
1 => 'page.php?3!',
2 => '/my-sef-url!',
3 => '/news/?page=',
),
'jumbotron_full' =>
array (
@ -90,6 +91,7 @@
2 => 'page.php$', // <-- $ = script name match
3 => '/user/settings?',
4 => 'script.php$',
5 => '/news/?bla',
),
'script_match' =>
array(
@ -119,11 +121,13 @@
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'),
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'),
18 => array('url' => SITEURL."/user/Tijn", 'script' => '/user.php', 'expected' => 'jumbotron_sidebar_right'),
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'),
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'),
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'),
);