mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-30 00:09:10 -04:00
#2031 - Add class_exists() before method_exists() if class existence is unknown.
- fixed all instances of this in core code - deleted previous Zend Guard Loader workaround in MY_Kohana.php - updated Bootstrap.php to reflect deleted MY_Kohana.php
This commit is contained in:
@@ -153,7 +153,7 @@ class SafeString_Core {
|
||||
* Purify the string, removing any potentially malicious or unsafe HTML / JavaScript.
|
||||
*/
|
||||
private static function _purify_for_html($dirty_html) {
|
||||
if (method_exists("purifier", "purify")) {
|
||||
if (class_exists("purifier") && method_exists("purifier", "purify")) {
|
||||
return purifier::purify($dirty_html);
|
||||
} else {
|
||||
return self::_escape_for_html($dirty_html);
|
||||
|
||||
Reference in New Issue
Block a user