Fixed bug #11876 and #12342: stripSlashesOnArray creates references where you want...
authorErnesto Baschny <ernst@cron-it.de>
Tue, 3 Nov 2009 20:58:05 +0000 (20:58 +0000)
committerErnesto Baschny <ernst@cron-it.de>
Tue, 3 Nov 2009 20:58:05 +0000 (20:58 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6328 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php

index 0658de3..559e709 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-03  Ernesto Baschny  <ernst@cron-it.de>
+
+       * Fixed bug #11876 and #12342: stripSlashesOnArray creates references where you want copies (in some PHP versions). Affects usage of _GP (e.g. in the Install Tool and some frontend extensions).
+
 2009-11-03  Oliver Hader  <oliver@typo3.org>
 
        * Cleanup #12440: Copy DBAL-only SQL parser methods from t3lib_sqlparser to ux_t3lib_sqlparser (thanks to Xavier Perseguers)
index 373f5b2..97d33ea 100644 (file)
@@ -1941,6 +1941,7 @@ final class t3lib_div {
                        } else {
                                $value = addslashes($value);
                        }
+                       unset($value);
                }
                reset($theArray);
        }
@@ -1962,6 +1963,7 @@ final class t3lib_div {
                        } else {
                                $value = stripslashes($value);
                        }
+                       unset($value);
                }
                reset($theArray);
        }