#1905: POSTed data sometimes HTML encoded sometimes not
------------------+---------------------------------------------------------
 Reporter:  Kyle  |        Type:  Bug               
   Status:  new   |    Priority:  Normal            
Milestone:        |   Component:  Core : Output Data
  Version:        |    Keywords:                    
------------------+---------------------------------------------------------
 While in Source mode the characters are not encoded as HTML entities for
 POST. While in normal mode (the usual mode for editing with FCKeditor) the
 characters are HTML encoded for POST.  Whether the POST data is HTML
 encoded or not depends entirely on what mode the user had FCKeditor in
 when they submit the form which makes it impossible to do the correct
 thing when gathering the POSTed data.

 Clicking back and forth between Source and Normal mode encodes the text as
 HTML entities, although it does not keep re-encoding them over and over
 again on each switch between Source and normal mode.

 Here's how to reproduce the problem:

 1. Choose any of the PHP samples on the nightly samples page. It works the
 same (badly) on all of them.

 2. Without changing any of the styles, enter the text '< & > "' between
 'is' and 'some', so the plain text would read This is < & > " some sample
 text.

 3. Submit the form. You get a new browser window with the data as "This is
 &lt; &amp; &gt; &quot; some..." '''This is the problem'''.   All of the
 samples have HtmlEncodeOutput set to the default value of 'false' so that
 all of those characters should NOT be encoded as html entities. Plain old
 <textarea> form fields do no encode those characters for the POST.

 4. Now go back to the form, and click on the "Source" button in the
 FCKEditor toolbar. You'll see that the text indeed shows "This is &lt;
 &amp; &gt; &quot; some...".

 5. While in Source mode view, remove those encoded symbols and put in the
 original symbols of '< & > "'. Leave the FCKEditor in Source mode and
 Submit the form. The new browser window now shows the data being posted as
 'This is < & > " some..." which is what it should always be.

 Browser: Tested on FireFox 2.0.12 and Safari 3.0.4 on Mac OS X 10.5.2.

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/1905>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to