Fix bug 4037: Link from Google AdWords fails due to wrong alias handling
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Sat, 19 Aug 2006 20:43:30 +0000 (20:43 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Sat, 19 Aug 2006 20:43:30 +0000 (20:43 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1683 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index 0f0b098..cb41425 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-08-19  Dmitry Dulepov  <typo3@accio.lv>
+
+       * Fix bug 4037: Link from Google AdWords fails due to wrong alias handling
+
 2006-08-19 Ingmar Schlecht  <ingmar@typo3.org>
 
        * Parly fixed #4013: New records in non-default language are displayed in list-module in localization view too now even if they don't have a parent record in the default language.
index 14255ab..882317f 100755 (executable)
                if (!$this->id) {
                        list($theAlias) = explode('&',t3lib_div::getIndpEnv('QUERY_STRING'));
                        $theAlias = trim($theAlias);
-                       $this->id = $theAlias ? $theAlias : 0;
+                       $this->id = ($theAlias != '' && strpos($theAlias, '=') === false) ? $theAlias : 0;
                }
        }