Skip to content

Commit 6db1b20

Browse files
authored
Revert "[Static analysis] Encodes a filename before inserting it into a URL." (#120195)
Reverts #120123 Broke some tests.
1 parent a56ca3a commit 6db1b20

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/tools/scan-build/bin/scan-build

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use Term::ANSIColor qw(:constants);
2323
use Cwd qw/ getcwd abs_path /;
2424
use Sys::Hostname;
2525
use Hash::Util qw(lock_keys);
26-
use URI::Escape;
2726

2827
my $Prog = "scan-build";
2928
my $BuildName;
@@ -821,8 +820,7 @@ ENDTEXT
821820
}
822821

823822
# Emit the "View" link.
824-
my $EncodedReport = uri_escape($ReportFile, "^A-Za-z0-9\-\._~\/");
825-
print OUT "<td><a href=\"$EncodedReport#EndPath\">View Report</a></td>";
823+
print OUT "<td><a href=\"$ReportFile#EndPath\">View Report</a></td>";
826824

827825
# Emit REPORTBUG markers.
828826
print OUT "\n<!-- REPORTBUG id=\"$ReportFile\" -->\n";

0 commit comments

Comments
 (0)