[solved] UTF-8 allway be overwritten

Found a bug? Tell us!!
Post Reply
dol
Posts: 3
Joined: Sat Oct 04, 2008 3:18 pm

[solved] UTF-8 allway be overwritten

Post 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.
Last edited by dol on Sun Oct 05, 2008 10:25 pm, edited 1 time in total.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: UTF-8 allway be overwritten

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
dol
Posts: 3
Joined: Sat Oct 04, 2008 3:18 pm

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
dol
Posts: 3
Joined: Sat Oct 04, 2008 3:18 pm

[solved]

Post 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!!!
Last edited by dol on Sun Oct 05, 2008 10:26 pm, edited 1 time in total.
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Re: [solved]

Post by sonichouse »

dol wrote:Is there an option to mark this tread as solved?
Just edit the first post and amend the Subject line.
Steve is occasionally blogging here
Post Reply