mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-03 18:42:10 +09:00
substr_compare()에서 문제를 일으킬 수 있는 부분 보완.
This commit is contained in:
parent
3430d4fae5
commit
e9dacc6cdf
5 changed files with 8 additions and 7 deletions
|
|
@ -278,7 +278,7 @@ class ModuleObject extends Object
|
|||
{
|
||||
if(!$path) return;
|
||||
|
||||
if(substr_compare($path, '/', 0, 1) !== 0 && substr_compare($path, './', 0, 2) !== 0)
|
||||
if((strlen($path) >= 1 && substr_compare($path, '/', 0, 1) !== 0) && (strlen($path) >= 2 && substr_compare($path, './', 0, 2) !== 0))
|
||||
{
|
||||
$path = './' . $path;
|
||||
}
|
||||
|
|
@ -357,7 +357,7 @@ class ModuleObject extends Object
|
|||
{
|
||||
if(!$path) return;
|
||||
|
||||
if(substr_compare($path, '/', 0, 1) !== 0 && substr_compare($path, './', 0, 2) !== 0)
|
||||
if((strlen($path) >= 1 && substr_compare($path, '/', 0, 1) !== 0) && (strlen($path) >= 2 && substr_compare($path, './', 0, 2) !== 0))
|
||||
{
|
||||
$path = './' . $path;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue