Changeset 276
- Timestamp:
- 02/16/07 14:19:39 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/websites/xml/stubXMLPagePostInterceptor.php
r265 r276 93 93 $xslProcessor->importXSLStylesheet(DOMDocument::load(stubFactory::getResourceURI('xsl/master.xsl'))); 94 94 if ($this->request->hasValue('page') == true) { 95 $pageName = $this->request->getValidatedValue(new stubRegexValidator(' [a-zA-Z0-9_'), 'page');95 $pageName = $this->request->getValidatedValue(new stubRegexValidator('([a-zA-Z0-9_])*'), 'page'); 96 96 if (null == $pageName || file_exists(stubConfig::getConfigPath() . '/xml/pages/conf/' . $pageName . '.xml') == false) { 97 97 $pageName = 'index'; … … 104 104 $resultXSL = $xslProcessor->transformToDoc(); 105 105 $resultXSL->xinclude(); 106 107 106 // now we use the created xsl to transform the xml document created by the application 108 107 $xslProcessor = new stubXSLProcessor(); trunk/src/main/php/net/stubbles/websites/xml/stubXMLProcessor.php
r267 r276 68 68 { 69 69 if ($this->request->hasValue('page') == true) { 70 $pageName = $this->request->getValidatedValue(new stubRegexValidator(' [a-zA-Z0-9_'), 'page');70 $pageName = $this->request->getValidatedValue(new stubRegexValidator('([a-zA-Z0-9_])*'), 'page'); 71 71 if (null == $pageName || file_exists(stubConfig::getConfigPath() . '/xml/pages/conf/' . $pageName . '.xml') == false) { 72 72 $pageName = 'index';
