]> xenbits.xensource.com Git - osstest.git/commitdiff
history reporting (nfc): Break out $url_ok_chars
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 14 Aug 2020 15:22:20 +0000 (16:22 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 19 Aug 2020 10:41:18 +0000 (11:41 +0100)
We will want this in a moment.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/HistoryReport.pm

index f8a499555132e298006095adac7d9f8358a2e953..75ec75f3042498222b8c7983f649ca27cd151949 100644 (file)
@@ -45,6 +45,8 @@ BEGIN {
 
 use POSIX;
 
+our $url_ok_chars = '-+=/~:;_.,\w';
+
 our @key_cols;
 
 our $taskprint='';
@@ -163,7 +165,7 @@ sub url_unquote ($) {
 
 sub url_quote ($) {
     local ($_) = "$_[0]";
-    s{[^-+=/~:;_.,\w]}{ sprintf "%%%02x", ord $& }ge;
+    s{[^$url_ok_chars]}{ sprintf "%%%02x", ord $& }ge;
     $_;
 }