[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OSSTEST PATCH 48/60] history reporting (nfc): Break out url_unquote


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Date: Fri, 14 Aug 2020 18:21:53 +0100
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
  • Delivery-date: Fri, 14 Aug 2020 17:27:06 +0000
  • Ironport-sdr: wuducQNRVAq8B5xzQ7UBCn0VqtsE5FEzld/9mfYnWqs9kS+ZM3RiooT5SVwl4qR/LReD/d/IVD mZ+f/3qkdGLpngT10HDEzjOq0KsovPBBG7FsR05OLOVPIJSaVGmKjqGQKSlacEYNvL/EyVDOTa YKRXO2FI4JP7Sc/fRoWp2HyUcafxY10wm5MlpwD5gHsZ+cA3UXo0HeNuE2Gr/sXBjqNCNs3oIh SP087T4ZFTpA672YoeLpUzoMSW32+S8RP9IUuEARqIFWqkE9i2+ioXjW+RValGwfsgfrmUTkxr lzA=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.