]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Quote non-displayable characters in hex, not octal
[Gitweb] / gitweb.perl
index 2efd43719c8785b23b96841ed7f997e3363be810f6b8030488cddc913808d705..5ac2233929773b7cf14348f23a1e2893372a5d9cbaae1f5aba77be68c2561fc4 100755 (executable)
@@ -776,7 +776,7 @@ sub quot_cec {
        );
        my $chr = ( (exists $es{$cntrl})
                    ? $es{$cntrl}
-                   : sprintf('\%03o', ord($cntrl)) );
+                   : sprintf('\%2x', ord($cntrl)) );
        if ($opts{-nohtml}) {
                return $chr;
        } else {
This page took 0.2487 seconds and 4 git commands to generate.