[TYPO3-core] RFC: issue #2753

Wolfgang Klinger wolfgang at stufenlos.net
Tue Mar 7 10:56:27 CET 2006


 *hiya!*

 CVS patch request
 Type: bugfix(?)

 Pagetype spacer is accessible via FE
 BT reference: http://bugs.typo3.org/view.php?id=2753


 bye
 Wolfgang

-------------- next part --------------
--- TYPO3core/typo3/sysext/cms/tslib/class.tslib_fe.php	2006-02-27 20:45:35.000000000 +0100
+++ TYPO3core_testing/typo3/sysext/cms/tslib/class.tslib_fe.php	2006-03-06 14:44:34.000000000 +0100
@@ -933,12 +933,24 @@
 				}
 			}
 		}
+
+		// spacer is not accessible in frontend
+		if ($this->page['doktype'] == 199)	{
+			if ($this->TYPO3_CONF_VARS['FE']['pageNotFound_handling'])	{
+				$this->pageNotFoundAndExit('The requested page does not exist!');
+			} else {
+				$this->printError('The requested page does not exist!');
+				exit;
+			}
+		}
+
 			// Is the ID a link to another page??
 		if ($this->page['doktype']==4)	{
 			$this->MP = '';		// We need to clear MP if the page is a shortcut. Reason is if the short cut goes to another page, then we LEAVE the rootline which the MP expects.
 			$this->page = $this->getPageShortcut($this->page['shortcut'],$this->page['shortcut_mode'],$this->page['uid']);
 			$this->id = $this->page['uid'];
 		}
+
 			// Gets the rootLine
 		$this->rootLine = $this->sys_page->getRootLine($this->id,$this->MP);
 


More information about the TYPO3-team-core mailing list