Bugs item #777600, was opened at 2003-07-25 08:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403611&aid=777600&group_id=31885
Category: Template
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: remove undefined variables, removes to much
Initial Comment:
Undefined variables are removed by this line in
template.inc:
$str = preg_replace('/{[^ \t\r\n}]+}/', "", $str);
this removes maybe CSS styles in the template file,
for example:
h1 {color:black}
would be removed or commented:
h1 <!-- Template $handle: Variable color:black
undefined -->
if tryed this, maybe you use it:
$str = preg_replace('/{[^ \t\r\n\:\;}]+}/', "", $str);
so : and ; wouldn't match the regular expression and
CSS or JavaScript Code between {} won't be removed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403611&aid=777600&group_id=31885
|