Home » HTML » HTML_Template_Xipe » Bug #267
templateDir cannot be set to '.'
Details
| Submitted | 2003-11-18 11:18 UTC |
|---|---|
| From | smith at backendmedia dot com |
| Assigned | cain |
| Status | Suspended |
| Package | HTML_Template_Xipe |
| PHP Version | Irrelevant |
| OS | Windows |
| Roadmaps | (Not assigned) |
Comments
[2003-11-18 11:18 UTC] smith at backendmedia dot com
Description:
------------
I tried setting this to '.' and this not to be working. Here is a fix I applied to my local copy:
RCS file: /2nd_drive/cvs/WebBuilder2.0/library/HTML/Template/Xipe/Main.php,v
retrieving revision 1.2
diff -r1.2 Main.php
295c295
< if( strpos( $this->_templateFile , $this->getOption('templateDir') ) === 0 )
---
> if( $this->getOption('templateDir') != '.' && strpos( $this->_templateFile , $this->getOption('templateDir') ) === 0 ) {
296a297
> }
Not sure if this is really an all emcompassing solution but it worked for me :-)
'..' might need some adressing as well ..