From 87a04b2ef6294cacb9ac172fc1a85f143f72eb42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 13 Oct 2015 10:32:04 +0300 Subject: [PATCH] do not load "Autoloader" from include path loading it from include path (without abs path) can be dangerous, can load some other project's Autoloader.php instead the right one. --- libs/Smarty.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 6cd1e5c8..3574dcf0 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -79,7 +79,7 @@ if (!defined('SMARTY_RESOURCE_DATE_FORMAT')) { */ if (!class_exists('Smarty_Autoloader', false)) { if (!class_exists('Smarty_Internal_Data', true)) { - require_once 'Autoloader.php'; + require_once dirname(__FILE__) . '/Autoloader.php'; Smarty_Autoloader::registerBC(); } }