From 9fc45abc4f32ea712519d593b66962aa95868deb Mon Sep 17 00:00:00 2001 From: thisgun Date: Thu, 6 Jul 2017 10:27:45 +0900 Subject: [PATCH] =?UTF-8?q?include=20path=20=EC=B2=B4=ED=81=AC=ED=95=A8?= =?UTF-8?q?=EC=88=98=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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index cc0f8efd0..6a3757a52 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -3335,11 +3335,12 @@ function is_include_path_check($path='') //echo 'Caught exception: ', $e->getMessage(), "\n"; return false; } + + if( preg_match('/\/data\/(file|editor)\/[A-Za-z0-9_]{1,20}\//', $path) ){ + return false; + } } - if( !$path || preg_match('/\/data\/(file|editor)\/[A-Za-z0-9_]{1,20}\//', $path) ){ - return false; - } return true; } ?> \ No newline at end of file