Monday 05 February 2007 1:56:29 pm
Hello - We are working with eZpublish 3.9 and the Online Editor version 4.2 and have noticed a strange issue that I have attempted to troubleshoot with no success. This issue happens with Internet Explorer 6.0. It does not happen in Firefox and has not been tested in other versions of IE. The issue happens as such: Edit an object with an XML Block attribute and include a single quote/apostrophe in that field. For instance, any word such as "can't" or "won't" which includes an apostrophe. When that object is published the first time, it is displayed correctly and saved to the database with the apostrophe character converted to '. Edit the same object again and the contents of the XML field will look something like "can't". This is where I have determined the issue to be taking place. The parser which is showing the contents of the XML block in the Online Editor has now converted the text to ' and Internet explorer has not successfully translated this into a single quote character (I believe IE does not recognize ' as valid). Testing this in an older version of eZ (3.8.4) and the Online Editor (4.1.2) has shown that this correctly displays as a single quote character. So something changed in the newer versions which is keeping IE from translating the character at this step. Publish the article and find that the database now says ' instead of just '. Edit the same object again and now these have been translated to ' (found the code that does this in \ezxmltext\handlers\input\ezdhtmlxmlinput.php, line 812). Publish the article again and find that the database now says ' again and the page displays correctly once again. Then the cycle repeats with further edits. I have searched through a lot of code and the forum on ez.no and have found nothing that helps. No one seems to have experienced this issue yet, but it seems like a fairly large one to me since it is keeping us from using any single quotes in any XML Block content areas of the site. Swapping the online editor for version 4.1.2 seems to fix the issue, but I'm not sure what kind of functionality we'll be losing as a result. I believe the fix to this would be to change all eZpublish code to use ' instead of ', since the latter is not valid in IE. However, I don't want to go mucking with the kernel myself. Any help would be much appreciated.
|