Ticket #681: 681_cfm.patch

File 681_cfm.patch, 849 bytes (added by Wiktor Walc, 13 years ago)

Proposal fix for the ColdFusion implementation

  • editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm

     
    3737        <cfset text = text & "%"  & CRLF
    3838                      & "^A" & CRLF
    3939                      & "!"  & CRLF>
    40         <cfloop list="#URLDecode(field)#" index="line" delimiters="#CRLF#">
     40        <!--- Strip all tags for the text. (by FredCK - #339 / #681) --->
     41        <cfset field = REReplace(URLDecode(field), "<[^>]+>", " ", "all")>
     42        <cfloop list="#field#" index="line" delimiters="#CRLF#">
    4143                <cfset text = ListAppend(text, "^" & Trim(JSStringFormat(line)), CRLF)>
    4244        </cfloop>
    4345</cfloop>
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy