forked from weisslj/clipperz-communityEdition
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed missing starting '^' in regular expression testing for urls san…
…ity (i.e. http, https, webdav, ftp); Added missing files from previous commit, specifically modified DomHelper to take into account of malicious JavaScript injections and XSS.
- Loading branch information
Showing
8 changed files
with
851 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// IE limit: 508 characters!!!!! | ||
// | ||
|
||
loadClipperzBookmarklet = function() { | ||
var headNode; | ||
var clipperzScript; | ||
|
||
clipperzScript = document.getElementById('clipperzScript'); | ||
headNode = document.getElementsByTagName("head").item(0); | ||
|
||
if (clipperzScript) { | ||
headNode.removeChild(clipperzScript); | ||
} | ||
|
||
clipperzScript = document.createElement('script'); | ||
clipperzScript.setAttribute('src', 'http%3a%2f%2fclipperz.com%2ffiles%2fclipperz.com%2fbookmarklet%2fBookmarklet.js'); | ||
clipperzScript.setAttribute('type', 'text/javascript'); | ||
clipperzScript.setAttribute('defer', true); | ||
headNode.appendChild(clipperzScript); | ||
} | ||
|
||
loadClipperzBookmarklet(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.