0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Don't change encoding of URL in Squire#makeLink.

Presume the URL is already valid, otherwise we could end up double encoding.
This commit is contained in:
Neil Jenkins 2014-06-06 14:00:31 +10:00
parent e108c18c38
commit eed472b5ef
3 changed files with 1 additions and 3 deletions

View file

@ -3356,7 +3356,6 @@ proto.removeSubscript = command( 'changeFormat', null, { tag: 'SUB' } );
proto.removeSuperscript = command( 'changeFormat', null, { tag: 'SUP' } );
proto.makeLink = function ( url ) {
url = encodeURI( url );
var range = this.getSelection();
if ( range.collapsed ) {
var protocolEnd = url.indexOf( ':' ) + 1;

File diff suppressed because one or more lines are too long

View file

@ -2243,7 +2243,6 @@ proto.removeSubscript = command( 'changeFormat', null, { tag: 'SUB' } );
proto.removeSuperscript = command( 'changeFormat', null, { tag: 'SUP' } );
proto.makeLink = function ( url ) {
url = encodeURI( url );
var range = this.getSelection();
if ( range.collapsed ) {
var protocolEnd = url.indexOf( ':' ) + 1;