[BUGFIX] Untrusted GP data is unserialized in wizard_colorpicker.php and view_help.php
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_tsparser_ext.php
index 4ea5461..7dcde6e 100644 (file)
@@ -307,7 +307,7 @@ class t3lib_tsparser_ext extends t3lib_TStemplate {
                        if (substr($key, -2) != '..') { // Don't do anything with comments / linenumber registrations...
                                $key = preg_replace('/\.$/', '', $key);
                                if (substr($key, -1) != '.') {
-                                       if (t3lib_div::testInt($key)) {
+                                       if (t3lib_utility_Math::canBeInterpretedAsInteger($key)) {
                                                $keyArr_num[$key] = $arr[$key];
                                        } else {
                                                $keyArr_alpha[$key] = $arr[$key];
@@ -941,7 +941,7 @@ class t3lib_tsparser_ext extends t3lib_TStemplate {
                                                $out[$key] = $val;
                                        break;
                                        default:
-                                               if (t3lib_div::testInt($key)) {
+                                               if (t3lib_utility_Math::canBeInterpretedAsInteger($key)) {
                                                        $constRefs = explode(',', $val);
                                                        foreach ($constRefs as $const) {
                                                                $const = trim($const);
@@ -1578,7 +1578,7 @@ class t3lib_tsparser_ext extends t3lib_TStemplate {
                                                switch ($typeDat['type']) {
                                                        case 'int':
                                                                if ($typeDat['paramstr']) {
-                                                                       $var = t3lib_div::intInRange($var, $typeDat['params'][0], $typeDat['params'][1]);
+                                                                       $var = t3lib_utility_Math::forceIntegerInRange($var, $typeDat['params'][0], $typeDat['params'][1]);
                                                                } else {
                                                                        $var = intval($var);
                                                                }