[Koha-cvs] CVS: koha/misc/translator TmplTokenizer.pm,1.9,1.10
Ambrose Li
acli at users.sourceforge.net
Wed Feb 18 07:56:23 CET 2004
Update of /cvsroot/koha/koha/misc/translator
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1378
Modified Files:
TmplTokenizer.pm
Log Message:
Warn against Apache #include directive
Index: TmplTokenizer.pm
===================================================================
RCS file: /cvsroot/koha/koha/misc/translator/TmplTokenizer.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** TmplTokenizer.pm 17 Feb 2004 07:45:17 -0000 1.9
--- TmplTokenizer.pm 18 Feb 2004 06:56:19 -0000 1.10
***************
*** 347,350 ****
--- 347,353 ----
$kind = TmplTokenType::DECL;
$kind = TmplTokenType::COMMENT if $it =~ /^<!--(?:(?!-->).)*-->/;
+ if ($kind == TmplTokenType::COMMENT && $it =~ /^<!--\s*#include/s) {
+ warn_normal "Apache #include directive found instead of HTML::Template directive <TMPL_INCLUDE>", $this->line_number_start;
+ }
} elsif ($it =~ /^<\?/) {
$kind = TmplTokenType::PI;
More information about the Koha-cvs
mailing list