Skip to content

Commit 30cf5e0

Browse files
Potential fix for code scanning alert no. 1: Incomplete URL scheme check
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent b85b1ec commit 30cf5e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interfaces/http/app/proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ func (ctrl *ProxyController) rewriteURL(urlStr string, baseURL *url.URL, proxyBa
452452
// Ne pas proxifier les URLs data:, blob:, about:, javascript:, etc.
453453
if strings.HasPrefix(urlStr, "data:") || strings.HasPrefix(urlStr, "blob:") ||
454454
strings.HasPrefix(urlStr, "about:") || strings.HasPrefix(urlStr, "javascript:") ||
455-
strings.HasPrefix(urlStr, "mailto:") || strings.HasPrefix(urlStr, "tel:") {
455+
strings.HasPrefix(urlStr, "vbscript:") || strings.HasPrefix(urlStr, "mailto:") || strings.HasPrefix(urlStr, "tel:") {
456456
return urlStr
457457
}
458458

0 commit comments

Comments
 (0)