summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-04-06 22:05:41 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2011-04-06 22:05:41 (GMT)
commit5da4a6299ac9c381de7b1912a9393605a062a1fc (patch)
tree24b4caa0e8dba4a08fbd5c9b6d991c6da63a706f
parentf27941289a55c690618bfa01111929ff422ae5b0 (diff)
downloadtip-bot-5da4a6299ac9c381de7b1912a9393605a062a1fc.zip
tip-bot-5da4a6299ac9c381de7b1912a9393605a062a1fc.tar.gz
tip-bot-5da4a6299ac9c381de7b1912a9393605a062a1fc.tar.bz2
tip-bot-5da4a6299ac9c381de7b1912a9393605a062a1fc.tar.xz
robotfmt: put angle brackets back around message ids
When URL-decoding a message ID we need to put the angle brackets back onto the message-id.
-rwxr-xr-xrobotfmt.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/robotfmt.pl b/robotfmt.pl
index d8a193f..29eac32 100755
--- a/robotfmt.pl
+++ b/robotfmt.pl
@@ -119,6 +119,7 @@ while (defined($l = <LOG>)) {
} elsif ($l =~ /^Link:\s*http:\/\/lkml.kernel.org\/r\/\<?([^\;\?\<\>\#]+)\>?$/i) {
my $ref = uri_unescape($1);
if ($ref ne '' && $ref !~ /[^!#\$\%&'()*+,-.\/0-9:;=?\@A-Z\[\]_`a-z{|}~]/) {
+ $ref = '<'.$ref.'>';
$cclist{$lkml}++;
if ($ref ne $nullref) {
push(@references, $ref);