Permalink
Browse files

Merge pull request #141 from Pita/patch-1

Fixed security issue
  • Loading branch information...
2 parents 38b3ac0 + a9f95e5 commit c1a4b3ea849103bcf4efc5bf22068201f8748e49 @asual committed Aug 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jquery.address.js
View
@@ -122,7 +122,7 @@
},
_html = function() {
var src = _js() + ':' + FALSE + ';document.open();document.writeln(\'<html><head><title>' +
- _d.title.replace(/\'/g, '\\\'') + '</title><script>var ' + ID + ' = "' + _href() +
+ _d.title.replace(/\'/g, '\\\'') + '</title><script>var ' + ID + ' = "' + encodeURIComponent(_href()).replace(/\'/g, '\\\'') +
(_d.domain != _l.hostname ? '";document.domain="' + _d.domain : '') +
'";</' + 'script></head></html>\');document.close();';
if (_version < 7) {

0 comments on commit c1a4b3e

Please sign in to comment.