2005-12-19 Michael Scharkow <michael@underused.org>
authorMichael Scharkow <michael@underused.org>
Tue, 20 Dec 2005 10:20:09 +0000 (10:20 +0000)
committerMichael Scharkow <michael@underused.org>
Tue, 20 Dec 2005 10:20:09 +0000 (10:20 +0000)
        * Fixed bug #1915: trigger 404 with bogus aliases

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@920 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 897458f..c765601 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2005-12-19  Michael Scharkow <michael@underused.org>
+       * Fixed bug #1915: trigger 404 with bogus aliases
+
 2005-12-19  Sebastian Kurfuerst  <sebastian@garbahe-group.de>
 
        * New feature #1078: make javascript warning/confirmation popups configurable
index b11d222..aba9da1 100755 (executable)
                                1 => 'ID was not an accessible page',
                                2 => 'Subsection was found and not accessible',
                                3 => 'ID was outside the domain',
+                               4 => 'The requested page alias does not exist'
                        );
                        $this->pageNotFoundAndExit($pNotFoundMsg[$this->pageNotFound]);
                }
        function checkAndSetAlias()     {
                if ($this->id && !t3lib_div::testInt($this->id))        {
                        $aid = $this->sys_page->getPageIdFromAlias($this->id);
-                       if ($aid)       {$this->id = $aid;}
+                       if ($aid)       {
+                               $this->id = $aid;
+                       } else {
+                               $this->pageNotFound = 4;
+                       }
                }
        }