Skip to content

Commit

Permalink
encodeURIComponent for special characters like #
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Aug 29, 2018
1 parent d1a198e commit 7ba45ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions asv/www/asv.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ $(document).ready(function() {
"LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8",
"LPT9"];
name = name.replace(bad_re, "_");
name = name.replace("#", "%23");
if (bad_names.indexOf(name.toUpperCase()) != -1) {
name = name + "_";
}
Expand All @@ -261,11 +260,11 @@ $(document).ready(function() {
} else {
part = key;
}
parts.push(sanitize_filename('' + part));
parts.push(encodeURIComponent(sanitize_filename('' + part)));
});
parts.sort();
parts.splice(0, 0, "graphs");
parts.push(sanitize_filename(benchmark_name));
parts.push(encodeURIComponent(sanitize_filename(benchmark_name)));
return parts.join('/') + ".json";
}

Expand Down

0 comments on commit 7ba45ca

Please sign in to comment.