summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBr0000k <77938600+Br0000k@users.noreply.github.com>2021-01-24 21:36:37 +0000
committerGitHub <noreply@github.com>2021-01-24 21:36:37 +0000
commit0014732fc2649ac05461388bac7c879e21b79032 (patch)
tree643e5523f2a8c9a72a6a59f30b6c74532063edb0 /src
parent6830dfd5fb86c0668d954964adde44e8a9b04df1 (diff)
Prevent address bar spoofing
Prevent IDN homograph attack
Diffstat (limited to 'src')
-rw-r--r--src/app.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 5d27618b..ec2f4b5b 100644
--- a/src/app.c
+++ b/src/app.c
@@ -1207,6 +1207,11 @@ iBool handleCommand_App(const char *cmd) {
1207 else { 1207 else {
1208 urlEncodePath_String(url); 1208 urlEncodePath_String(url);
1209 } 1209 }
1210
1211 /* Prevent address bar spoofing (mentioned as IDN homograph attack
1212 in issue 73) */
1213 punyEncodeUrlHost_String(url);
1214
1210 setUrlFromCache_DocumentWidget(doc, url, isHistory); 1215 setUrlFromCache_DocumentWidget(doc, url, isHistory);
1211 /* Optionally, jump to a text in the document. This will only work if the document 1216 /* Optionally, jump to a text in the document. This will only work if the document
1212 is already available, e.g., it's from "about:" or restored from cache. */ 1217 is already available, e.g., it's from "about:" or restored from cache. */