From d63d15600ab6b4d6d45e268915d7e1bed7177f05 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 7 May 2005 00:08:27 +0000 Subject: [PATCH] Fix for http://mosquito.wordpress.org/view.php?id=1306 git-svn-id: http://svn.automattic.com/wordpress/trunk@2587 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/quicktags.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/quicktags.js b/wp-admin/quicktags.js index 4204ea45ff..cd7a714dfa 100644 --- a/wp-admin/quicktags.js +++ b/wp-admin/quicktags.js @@ -251,7 +251,7 @@ function edSpell(myField) { if (word == '') { word = prompt('Enter a word to look up:', ''); } - if (word != '') { + if (word !== null && /^\w[\w ]*$/.test(word)) { window.open('http://www.answers.com/' + escape(word)); } }