From 84467fbb8dee9b2c4b0a3ef3b5ed68350cad5220 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Fri, 13 Sep 2013 14:34:59 +0400 Subject: [PATCH] Restrict opening of files outside the Mibew installation --- src/messenger/webim/libs/common.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index da70e714..2be94966 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -15,6 +15,8 @@ * limitations under the License. */ +@ini_set('open_basedir', dirname(__FILE__) . '/../'); + session_start(); require_once(dirname(__FILE__) . '/converter.php');