]> Sergey Matveev's repositories - public-inbox.git/commit
viewdiff: make $UNSAFE a variable
authorEric Wong <e@80x24.org>
Fri, 28 May 2021 00:07:52 +0000 (00:07 +0000)
committerEric Wong <e@80x24.org>
Fri, 28 May 2021 03:46:33 +0000 (03:46 +0000)
commit2bc155b455048b127e5ae883a0e5a9964ef437ae
treea5ff847b3bf728698e09f7b8f07981874b3fda1f
parentff96ecca608fbb444cce464d74047354585d852d
viewdiff: make $UNSAFE a variable

There's no sense in using a constant here since it
gets copied into the uri_escape_utf8 function anyways.
Furthermore, inlined constants still leave behind a
subroutine and subs cost several KB of memory.

Finally, add a comment as to why it's different than the default
escape, since I just spent a minute wondering that.
lib/PublicInbox/ViewDiff.pm