projects
/
webpac2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e7096d
)
r8893@llin: dpavlin | 2005-11-15 17:52:20 +0100
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 15 Nov 2005 16:56:40 +0000
(16:56 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 15 Nov 2005 16:56:40 +0000
(16:56 +0000)
strip cr or lf which seem to accumulate at end of template
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@63
07558da8
-63fa-0310-ba24-
9fe276d99e06
web/browse.cgi
patch
|
blob
|
history
diff --git
a/web/browse.cgi
b/web/browse.cgi
index
6f29b2c
..
a5c0cee
100755
(executable)
--- a/
web/browse.cgi
+++ b/
web/browse.cgi
@@
-94,6
+94,7
@@
if ($q->path_info =~ m#xml#) {
return $iconv_loc->convert(chr(hex($t)));
}
$tmpl =~ s/%u([a-fA-F0-9]{4})/_conv_js($1)/gex;
+ $tmpl =~ s/[\n\r]+$//s;
my $tmpl_file = $out->{'include_path'} . '/' . $template;
write_file($tmpl_file . '.new', $tmpl) || die "can't save $tmpl_file: $!";