From 7b53048e9b87c3ff43d376a64a88dce3d274ad87 Mon Sep 17 00:00:00 2001 From: Ingo Renner Date: Wed, 3 Sep 2008 18:06:44 +0000 Subject: [PATCH] Declared t3lib_div::readLLPHPfile() and t3lib_div::removeXSS() static git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4057 709f56b5-9817-0410-a4d7-c38de5d9e867 --- ChangeLog | 1 + t3lib/class.t3lib_div.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4e93e57c6d2..52dc66d4666 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2008-09-03 Ingo Renner * Added feature #9281: Add a method to easily do a HTTP redirect + * Declared t3lib_div::readLLPHPfile() and t3lib_div::removeXSS() static 2008-09-02 Stanislas Rolland diff --git a/t3lib/class.t3lib_div.php b/t3lib/class.t3lib_div.php index 933a926f1f0..6c49915bf36 100755 --- a/t3lib/class.t3lib_div.php +++ b/t3lib/class.t3lib_div.php @@ -378,7 +378,7 @@ final class t3lib_div { * @param string Input string * @return string Input string with potential XSS code removed */ - public function removeXSS($string) { + public static function removeXSS($string) { require_once(PATH_typo3.'contrib/RemoveXSS/RemoveXSS.php'); $string = RemoveXSS::RemoveXSS($string); return $string; @@ -4032,7 +4032,7 @@ final class t3lib_div { * @param string Character set (optional) * @return array LOCAL_LANG array in return. */ - function readLLPHPfile($fileRef, $langKey, $charset='') { + public static function readLLPHPfile($fileRef, $langKey, $charset='') { if (is_object($GLOBALS['LANG'])) { $csConvObj = &$GLOBALS['LANG']->csConvObj; -- 2.20.1