Dotclear


Ignore:
Timestamp:
04/27/15 13:01:58 (10 years ago)
Author:
Nicolas <nikrou77@…>
Branch:
default
Message:

Fix #2062 - quotes were not encoded in attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcCKEditor/js/popup_link.js

    r2868 r3000  
    2424               link.setAttribute('href', insert_form.elements.href.value); 
    2525               if (insert_form.elements.title.value!='') { 
    26                     link.setAttribute('title', insert_form.elements.title.value); 
     26                    link.setAttribute( 
     27                         'title', 
     28                         window.opener.CKEDITOR.tools.htmlEncodeAttr(insert_form.elements.title.value) 
     29                    ); 
    2730               } 
    2831               if (insert_form.elements.hreflang.value!='') { 
    29                     link.setAttribute('hreflang', insert_form.elements.hreflang.value); 
     32                    link.setAttribute( 
     33                         'hreflang', 
     34                         window.opener.CKEDITOR.tools.htmlEncodeAttr(insert_form.elements.hreflang.value) 
     35                    ); 
    3036               } 
    3137               if (editor.getSelection().getSelectedElement()!=null) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map