[clang] [Static analysis] Encodes a filename before inserting it into a URL. (PR #120810)
Brianna Fan via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 13 10:36:38 PST 2025
================
@@ -1465,6 +1466,17 @@ sub HtmlEscape {
return $tmp;
}
+##----------------------------------------------------------------------------##
+# URLEscape - encode characters that are special in URLs
+##----------------------------------------------------------------------------##
+
+sub URLEscape {
+ my $arg = shift || '';
+ my $tmp = $arg;
+ $tmp =~ s/\+/%2B/g;
----------------
briannafan wrote:
Good point! Will update this before landing.
https://github.com/llvm/llvm-project/pull/120810
More information about the cfe-commits
mailing list