diff options
author | Eric Wong <e@yhbt.net> | 2020-01-25 04:45:04 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-01-27 02:59:09 +0000 |
commit | 02cdbe1c1638ba8e80351b39029c08343fab018b (patch) | |
tree | cf1f05b6a0b8077fd701d8ac40d9fa6e7eb81d48 /lib/PublicInbox/ViewVCS.pm | |
parent | f09b01e0e89dbdf0f0bd6bfae2f8545fa17657d2 (diff) | |
download | public-inbox-02cdbe1c1638ba8e80351b39029c08343fab018b.tar.gz |
We use the same idiom in many places for doing two-step linkification and HTML escaping. Get rid of an outdated comment in flush_quote while we're at it.
Diffstat (limited to 'lib/PublicInbox/ViewVCS.pm')
-rw-r--r-- | lib/PublicInbox/ViewVCS.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm index fdca70cb..77b3ca28 100644 --- a/lib/PublicInbox/ViewVCS.pm +++ b/lib/PublicInbox/ViewVCS.pm @@ -90,8 +90,7 @@ sub show_other_result ($$) { } my $l = PublicInbox::Linkify->new; utf8::decode($$bref); - $l->linkify_1($$bref); - $$bref = '<pre>'. $l->linkify_2(ascii_html($$bref)); + $$bref = '<pre>'. $l->to_html($$bref); $$bref .= '</pre><hr>' . $$logref; html_page($ctx, 200, $bref); } @@ -125,9 +124,8 @@ sub solve_result { my $ref = ref($res); my $l = PublicInbox::Linkify->new; - $l->linkify_1($log); $log = '<pre>debug log:</pre><hr /><pre>' . - $l->linkify_2(ascii_html($log)) . '</pre>'; + $l->to_html($log) . '</pre>'; $res or return html_page($ctx, 404, \$log); $ref eq 'ARRAY' or return html_page($ctx, 500, \$log); |