Opened 18 years ago
Last modified 17 years ago
#650 closed Bug
ColdFusion 'config' Struct Attributes Not Parsed Correctly — at Initial Version
Reported by: | Martin Kou | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Server : ColdFusion | Version: | |
Keywords: | SF | Cc: | hkramer@… |
Description
Ran into a few bugs with the ColdFusion code that parsed the config struct.
- In fckeditor.cfm, the ampersand isn't inserted
between name="value" statements for the hidden config form field.
Its a simple fix:
sConfig = sConfig & "&" & HTMLEditFormat( fieldName ) & '=' & HTMLEditFormat( fieldValue );
- Again in fckeditor.cfm, the isBoolean() test to
convert "yes/no" to "true/false" will also convert a value such as "649" to "true". For example the "ImageBrowserWindowWidth" was being set to "true" for me.
Again a simple fix:
if( isBoolean(fieldValue) and NOT isNumeric(fieldValue) and fieldValue ) fieldValue = "true"; else if( isBoolean( fieldValue) and NOT isNumeric (fieldValue) ) fieldValue = "false";
Basically I just added "AND NOT isNumeric(fieldValue)".
Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1159115&group_id=75348&atid=543653