r8903@llin: dpavlin | 2005-11-16 16:49:47 +0100
[webpac2] / web / browse.cgi
index f55749a..916d946 100755 (executable)
@@ -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 $!";