From 5c65188ef82c668befd6dc5802af051706b0b05b Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Mon, 11 Dec 2006 18:02:54 -0500 Subject: [PATCH] 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)); -- 1.7.10.4