Index: src/wp-includes/js/wplink.js
===================================================================
--- src/wp-includes/js/wplink.js	(revision 28806)
+++ src/wp-includes/js/wplink.js	(working copy)
@@ -270,7 +270,7 @@
 		setDefaultValues: function() {
 			var selection = editor && editor.selection.getContent(),
 				emailRegexp = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i,
-				urlRegexp = /^(https?|ftp):\/\/[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
+				urlRegexp = /^(https?|ftp):\/\/[A-Z0-9.-]+\.[A-Z]{2,4}[^ "]*$/i;
 
 			if ( selection && emailRegexp.test( selection ) ) {
 				// Selection is email address
@@ -277,7 +277,7 @@
 				inputs.url.val( 'mailto:' + selection );
 			} else if ( selection && urlRegexp.test( selection ) ) {
 				// Selection is URL
-				inputs.url.val( selection );
+				inputs.url.val( selection.replace( /&amp;|&#0?38;/gi, '&' ) );
 			} else {
 				// Set URL to default.
 				inputs.url.val( 'http://' );
