Skip to content

Commit

Permalink
only allow https urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Marten Klitzke committed Jan 27, 2016
1 parent 8e41aa0 commit aea64ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "__MSG_extName__",
"description": "__MSG_extDescription__",
"version": "1.0.4",
"version": "1.0.5",
"default_locale": "en",
"background": {
"scripts": ["background.js"],
Expand Down
2 changes: 1 addition & 1 deletion popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function closeAndReload() {
}

function isValidURL(url) {
var RegExp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;
var RegExp = /https:\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;

if (RegExp.test(url)) {
return true;
Expand Down

0 comments on commit aea64ce

Please sign in to comment.