Permalink
Browse files

Fixed security issue

  • Loading branch information...
1 parent 38b3ac0 commit a9f95e5885a9e7311636264799451044dbdf5536 @Pita Pita committed Aug 14, 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 a9f95e5

Please sign in to comment.