mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +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();
|
$oDB->begin();
|
||||||
|
|
||||||
// type is url
|
// 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
|
// set menu variable
|
||||||
$args->menu_srl = $request->menu_srl;
|
$args->menu_srl = $request->menu_srl;
|
||||||
|
|
@ -499,7 +499,7 @@ class menuAdminController extends menu
|
||||||
if($itemInfo->is_shortcut == 'Y')
|
if($itemInfo->is_shortcut == 'Y')
|
||||||
{
|
{
|
||||||
// type is url
|
// 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;
|
$args->url = $request->shortcut_target;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue