Fixed bug #12581: Pagetree frame shows HTTP 404 error
authorOliver Hader <oliver.hader@typo3.org>
Tue, 24 Nov 2009 18:23:35 +0000 (18:23 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 24 Nov 2009 18:23:35 +0000 (18:23 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6518 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php

index fcac84e..1f26eb8 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
        * Fixed bug #12669: Fatal error: Call to a member function getSystemLanguages()
        * Fixed bug #11577: t3lib_formmail floods syslog with "Possible abuse of t3lib_formmail..." messages (thanks to Fabrizio Branca)
        * Fixed bug #12728: Upgrade ExtJS skin to match t3skin (thanks to T3UXW09 participants)
+       * Fixed bug #12581: Pagetree frame shows HTTP 404 error
 
 2009-11-24  Steffen Kamper  <info@sk-typo3.de>
 
index 3733f22..b742df7 100644 (file)
@@ -4120,7 +4120,7 @@ final class t3lib_div {
                        );
 
                                // Pass if URL is on the current host:
-                       if (self::isValidUrl($decodedUrl)) {
+                       if (self::isValidUrl($decodedUrl) && preg_match('#^[a-z0-9]+://#', $decodedUrl)) {
                                if (self::isOnCurrentHost($decodedUrl) && strpos($decodedUrl, self::getIndpEnv('TYPO3_SITE_URL')) === 0) {
                                        $sanitizedUrl = $url;
                                }