[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [OSSTEST PATCH 48/60] history reporting (nfc): Break out url_unquote
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- Osstest/HistoryReport.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Osstest/HistoryReport.pm b/Osstest/HistoryReport.pm index f30ded5b..f8a49955 100644 --- a/Osstest/HistoryReport.pm +++ b/Osstest/HistoryReport.pm @@ -147,8 +147,7 @@ sub cache_read_previous ($) { } s{^(\w+)=}{} or die "$orig -- $_ "; my $k = $1; - s{\%([0-9a-f]{2})}{ chr hex $1 }ge; - $ch->{$k} = $_; + $ch->{$k} = url_unquote($_); } push @previous, $jr; $cache{key($jr)} = $jr; @@ -156,6 +155,12 @@ sub cache_read_previous ($) { close H; } +sub url_unquote ($) { + local ($_) = "$_[0]"; + s{\%([0-9a-f]{2})}{ chr hex $1 }ge; + $_; +} + sub url_quote ($) { local ($_) = "$_[0]"; s{[^-+=/~:;_.,\w]}{ sprintf "%%%02x", ord $& }ge; -- 2.11.0
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |