Changeset 338

Show
Ignore:
Timestamp:
2007-05-30 23:37:52 (20 months ago)
Author:
alfonsoml
Message:

Fix for #258, the boolean values did get sent as "true" or "false" if the server locale wasn't English.

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/fckeditor.asp

    r132 r338  
    1 <!-- 
     1<!-- 
    22 * FCKeditor - The text editor for Internet - http://www.fckeditor.net 
    33 * Copyright (C) 2003-2007 Frederico Caldeira Knabben 
     
    188188 
    189189        Private Function EncodeConfig( valueToEncode ) 
    190                 EncodeConfig = Replace( valueToEncode, "&", "%26" ) 
    191                 EncodeConfig = Replace( EncodeConfig , "=", "%3D" ) 
    192                 EncodeConfig = Replace( EncodeConfig , """", "%22" ) 
     190                ' The locale of the asp server makes the conversion of a boolean to string different to "true" or "false" 
     191                ' so we must do it manually 
     192    If vartype(valueToEncode) = vbBoolean then  
     193                        If valueToEncode=True Then 
     194                                EncodeConfig="True" 
     195                        Else 
     196                                EncodeConfig="False" 
     197                        End If  
     198                Else 
     199                        EncodeConfig = Replace( valueToEncode, "&", "%26" ) 
     200                        EncodeConfig = Replace( EncodeConfig , "=", "%3D" ) 
     201                        EncodeConfig = Replace( EncodeConfig , """", "%22" ) 
     202                End if                            
     203 
    193204        End Function 
    194205 
  • FCKeditor/trunk/_whatsnew.html

    r332 r338  
    108108                        form had a button named "submit" the "Save" command didn't work in Firefox.</li> 
    109109                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/414">#414</a>] If tracing was  
    110                 globally enabled in Asp.Net 2.0 then the Asp.Net connector did fail.</li> 
     110                        globally enabled in Asp.Net 2.0 then the Asp.Net connector did fail.</li> 
    111111                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/520">#520</a>] The "Select 
    112112                        Field" properties dialog was not correctly handling select options with &amp;, &lt; 
    113113                        and &gt;.</li> 
     114                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/258">#258</a>] The Asp integration  
     115                        didn't pass boolean values in English, using instead the locale of the server and failing.</li> 
    114116        </ul> 
    115117        <h3>