From 654c2370ea1c62cc610138209018b6d4abc62046 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 8 Sep 2017 11:54:42 +0200 Subject: [PATCH] [ticket/7845] Ensure config script path is not empty PHPBB3-7845 --- phpBB/includes/message_parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index d397c0084e..45f00c9ee1 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -1072,7 +1072,7 @@ class bbcode_firstpass extends bbcode if ($config['force_server_vars']) { - $check_path = $config['script_path']; + $check_path = !empty($config['script_path']) ? $config['script_path'] : '/'; } else {