mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
issue 2911 add relative path rule for url link
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12674 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
54a6f3549d
commit
305a1d3ef5
1 changed files with 2 additions and 2 deletions
|
|
@ -304,7 +304,7 @@ class menuAdminController extends menu
|
|||
$oDB->begin();
|
||||
|
||||
// type is url
|
||||
if(preg_match('/^http/i', $request->shortcut_target))
|
||||
if(preg_match('/^http/i', $request->shortcut_target) || preg_match('/^(\.\/|\.\.\/|\/).*$/', $request->shortcut_target))
|
||||
{
|
||||
// set menu variable
|
||||
$args->menu_srl = $request->menu_srl;
|
||||
|
|
@ -499,7 +499,7 @@ class menuAdminController extends menu
|
|||
if($itemInfo->is_shortcut == 'Y')
|
||||
{
|
||||
// type is url
|
||||
if(preg_match('/^http/i', $request->shortcut_target))
|
||||
if(preg_match('/^http/i', $request->shortcut_target) || preg_match('/^(\.\/|\.\.\/|\/).*$/', $request->shortcut_target))
|
||||
{
|
||||
$args->url = $request->shortcut_target;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue