projects
/
webpac2
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r8903@llin: dpavlin | 2005-11-16 16:49:47 +0100
[webpac2]
/
web
/
browse.cgi
diff --git
a/web/browse.cgi
b/web/browse.cgi
index
f55749a
..
916d946
100755
(executable)
--- a/
web/browse.cgi
+++ b/
web/browse.cgi
@@
-54,6
+54,7
@@
sub update_file($$) {
return $iconv_loc->convert(chr(hex($t)));
}
$content =~ s/%u([a-fA-F0-9]{4})/_conv_js($1)/gex;
+ $content =~ s/^[\n\r]+//s;
$content =~ s/[\n\r]+$//s;
write_file($path . '.new', $content) || die "can't save ${path}.new $!";