Page 1 of 1

[solved] UTF-8 allway be overwritten

Posted: Sat Oct 04, 2008 3:41 pm
by dol
I have a problem on my blog that sometimes the values in the "lang/UTF-8/serendipity_lang_de.inc.php" has been overwritten by s9y and all the special characters and mutated vowel aren't UTF-8 at all. At the moment I disabled (chmod u-w) the write access on this files.
Is there an error on sharedhosting server? This problem occurs only for all the predefined template variables. The content itself is ok.
Any suggestions?

-- UPDATE --
I found out, that every time i call lang/UTF-8/recode.php the file will be kaput. shell_exec() is enables on the server.

Re: UTF-8 allway be overwritten

Posted: Sun Oct 05, 2008 7:59 pm
by garvinhicking
Hi!

Why do you call the recode.php file? This is meant for developers who change the main ISO files and want to regenerate the UTF-8 files.

Regards,
Garvin

Posted: Sun Oct 05, 2008 9:18 pm
by dol
I wanted to find out where the problem is. If only developer use this file, why is it in the offical source?
But if I don't call recode.php and do nothing on my blog instead of viewing it, then from time to time the UTF-8 files are all overwritten. I can simulate this by requesting recode.php.

Posted: Sun Oct 05, 2008 9:37 pm
by garvinhicking
Hi!
dol wrote:I wanted to find out where the problem is. If only developer use this file, why is it in the offical source?
To make it easier for new developers, so that they have the tools to be able to transform their wanted strings.
But if I don't call recode.php and do nothing on my blog instead of viewing it, then from time to time the UTF-8 files are all overwritten. I can simulate this by requesting recode.php.
I believe this happens because the "iconv" tool is not installed on your server. I wonder who/why this recode.php file is then requested. It doesn't take any input, so I doubt it could be used for anything.

In your case, I'd simply remove the recode.php. FOr future s9y versions I have now changed that file so that developers need to enable it to actually do anything with it.

Regards,
Garvin

[solved]

Posted: Sun Oct 05, 2008 10:15 pm
by dol
Thank you for your investigation. I don't know who or what did call recode.php. I will have a look at the serverlog.
Is there an option to mark this tread as solved?

-- Update --
Thanks to @sonichouse

Some times I'm that stupid!!!

Re: [solved]

Posted: Sun Oct 05, 2008 10:23 pm
by sonichouse
dol wrote:Is there an option to mark this tread as solved?
Just edit the first post and amend the Subject line.