From a2bad15bfebebd116d5ddced9aaaad1181f32d03 Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 2 Apr 2020 17:02:20 +0900 Subject: [PATCH] =?UTF-8?q?php7.4=20=EB=B2=84=EC=A0=84=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EA=B2=BD=EA=B3=A0=EB=A9=94=EC=8B=9C=EC=A7=80=20=EB=82=98?= =?UTF-8?q?=EC=98=A4=EB=8A=94=20=EB=AC=B8=EB=B2=95=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index a2457e008..4cbaf89d1 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -3712,12 +3712,12 @@ function is_include_path_check($path='', $is_input='') try { // whether $path is unix or not - $unipath = strlen($path)==0 || $path{0}!='/'; + $unipath = strlen($path)==0 || substr($path, 0, 1) != '/'; $unc = substr($path,0,2)=='\\\\'?true:false; // attempts to detect if path is relative in which case, add cwd if(strpos($path,':') === false && $unipath && !$unc){ $path=getcwd().DIRECTORY_SEPARATOR.$path; - if($path{0}=='/'){ + if(substr($path, 0, 1) == '/'){ $unipath = false; } }