delan10 wrote:In fact the problem is that it is impossible to edit an existing post with realblog (v. XH 1.2) since the hoster (1&1) activated php5.4.
I can create a post but when I try to edit them it deletes the whole post, which is a bit annoying...
Ah, I see. I assume this is caused by a slight change of
htmlspecialchars() and htmlentities(): in PHP 5.4 the $encoding parameter was changed to
default to 'UTF-8'. The result of calling htmlspecialchars() on a string containing invalid UTF-8 byte sequences will be an empty string. See
http://cmsimpleforum.com/viewtopic.php?f=29&t=6373 for further details regarding this issue and
http://sourceforge.net/p/cmsimplexh/code/859/ for the changes that have been done to CMSimple_XH 1.1.7 to cater for it (containing the necessary changes for FCKEditor to run on PHP 5.4).
It might suffice to add the desired encoding ('ISO-8859-1') explicitely to all htmlspecialchars() and htmlentities(). A quick search shows only 2 htmlspecialchars() in plugins/realblog/admin.php and 2 in plugins/realblog/index.php. For instance, plugins/realblog/admin.php in line 713 you would have to replace:
Code: Select all
htmlspecialchars($realblog_headline)
with
Code: Select all
htmlspecialchars($realblog_headline, ENT_COMPAT, 'ISO-8859-1')
delan10 wrote:Do you think I can use a more recent version of realblog on the concerned cmsimple xh 1.4.4 installations to resolve the problem ?
No, I don't think so. Likely, they're going to introduce even more problems with regard to non UTF-8 encodings. However, they may fix bugs and vulnerabilities.
delan10 wrote:I know switching to xh 1.5.9 would be a solution, but for those existing websites I would prefer an "easier" solution that allows me to encode in iso with realblog, whick was possible under earlier php versions.
I understand why you're looking for an easy solution. The suggestions given above may be such. However, there might be other issues, and at least your hoster switching to a newer version of PHP might introduce new ones, so I generally recommend upgrading to the latest version of CMSimple_XH as soon as possible, and always keep plugins up-to-date.