From: Jason Woofenden Date: Mon, 11 Dec 2006 23:02:54 +0000 (-0500) Subject: fixed template bug where load would get confused about a section start tag if it... X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=commitdiff_plain;h=5c65188ef82c668befd6dc5802af051706b0b05b fixed template bug where load would get confused about a section start tag if it was shortly after a "', substr($in, 0, 12)) == 0) { $in = substr($in, 12); return; @@ -89,7 +90,7 @@ class tem { $matches = array(); # this limits sub_template names to 50 chars - if(ereg('', substr($in, 0, 65), $matches)) { + if(ereg('^', substr($in, 0, 65), $matches)) { list($start_tag, $tag_name) = $matches; $out .= '~' . $tag_name . '~'; $in = substr($in, strlen($start_tag));