Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Do not send data URLs to webcompat.com. Fixes #1631 (#1664)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored and keianhzo committed Aug 27, 2019
1 parent f3fac61 commit 64098ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ private void onSettingsReportClick() {
if (url == null) {
// In case the user had no active sessions when reporting, just leave the URL field empty.
url = "";
} else if (url.startsWith("jar:") || url.startsWith("resource:") || url.startsWith("about:")) {
} else if (url.startsWith("jar:") || url.startsWith("resource:") || url.startsWith("about:") || url.startsWith("data:")) {
url = "";
} else if (sessionStack.isHomeUri(url)) {
// Use the original URL (without any hash).
Expand Down

0 comments on commit 64098ae

Please sign in to comment.