Commit 41a379ad authored by Bong Cosca's avatar Bong Cosca
Browse files

Bug fix: Filter only PHP code (including short tags) in templates

parent a65912d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -309,7 +309,7 @@ class Template extends View {
					filemtime($this->view)<filemtime($view)) {
					// Remove PHP code and comments
					$text=preg_replace(
						'/<\?(?:php)?.+?\?>|{{\*.+?\*}}/is','',
						'/<\?(?:php|\s*=).+?\?>|{{\*.+?\*}}/is','',
						$fw->read($view));
					// Build tree structure
					for ($ptr=0,$len=strlen($text),