mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-03 05:41:37 +01:00
- remove exception_handler property from Smarty class
- added Smarty's own exceptions SmartyException and SmartyCompilerException
This commit is contained in:
@@ -75,7 +75,7 @@ class Smarty_Internal_Security_Handler {
|
||||
if (empty($this->smarty->security_policy->streams) || in_array($stream_name, $this->smarty->security_policy->streams)) {
|
||||
return true;
|
||||
} else {
|
||||
throw new Exception ("stream '{$stream_name}' not allowed by security setting");
|
||||
throw new SmartyException ("stream '{$stream_name}' not allowed by security setting");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -112,7 +112,7 @@ class Smarty_Internal_Security_Handler {
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception ("directory '{$_rp}' not allowed by security setting");
|
||||
throw new SmartyException ("directory '{$_rp}' not allowed by security setting");
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
@@ -138,7 +138,7 @@ class Smarty_Internal_Security_Handler {
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception ("directory '{$_rp}' not allowed by security setting");
|
||||
throw new SmartyException ("directory '{$_rp}' not allowed by security setting");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user