JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.6.1
[ckeditor.git] / _source / plugins / link / dialogs / link.js
index 238113a..118d1b0 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
@@ -503,6 +503,11 @@ CKEDITOR.dialog.add( 'link', function( editor )
                                                                                                        dialog.getValueOf( 'info', 'linkType' ) != 'url' )\r
                                                                                                return true;\r
 \r
+                                                                                       if ( (/javascript\:/).test( this.getValue() ) ) {\r
+                                                                                               alert( commonLang.invalidValue );\r
+                                                                                               return false;\r
+                                                                                       }\r
+\r
                                                                                        if ( this.getDialog().fakeObj ) // Edit Anchor.\r
                                                                                                return true;\r
 \r