S9Y overwriting DB settings when saving config

Found a bug? Tell us!!
Post Reply
User avatar
ReneSchmidt
Regular
Posts: 13
Joined: Sat Jan 22, 2005 7:34 pm
Contact:

S9Y overwriting DB settings when saving config

Post by ReneSchmidt » Mon Nov 14, 2005 10:47 pm

Hi there,

when saving settings (Admin panel -> Administration -> Konfiguration) for a fresh 0.9 stable installation (no need to change settings actutally) the database connection settings in file serendipity_config_local.inc.php get messed up.

I'm currently dealing with two installations where after saving the db connection password reads 'john'. It took my 10 hours to figure it out...

Please fix, thanks. :)
Last edited by ReneSchmidt on Tue Nov 15, 2005 8:48 pm, edited 1 time in total.

Guest

Re: Bugbugbug

Post by Guest » Tue Nov 15, 2005 1:28 pm

This is a bug in your browser. It can happen when your browser does not properly restore INPUT elements, but displays them with previous contents.

The firefox browser is known to cause these oddities, especiall if you are using Form extensions like SaveForm.

Thus, there is nothing we can fix in Serendipity. When your browser sends a password for a field, Serendipity must think that you know what you are sending.

( Hint: use descriptive titles for your posting! :-) )

Regards,
Garvin

User avatar
ReneSchmidt
Regular
Posts: 13
Joined: Sat Jan 22, 2005 7:34 pm
Contact:

Re: Bugbugbug

Post by ReneSchmidt » Tue Nov 15, 2005 8:51 pm

Anonymous wrote:This is a bug in your browser. It can happen when your browser does not properly restore INPUT elements, but displays them with previous contents.

The firefox browser is known to cause these oddities, especiall if you are using Form extensions like SaveForm.


Hi Garvin,

I don't use SaveForm. Firefox did not preset input fields with previously saved data. In fact, the DB password form field is completely empty as it should be. Yet S9Y does overwrite the db password with 'john' (doe?).

I will have a look into it tomorrow.

Rene
PS: phpOpenTracker plugin v1.3 is under way...

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Bugbugbug

Post by garvinhicking » Tue Nov 15, 2005 9:25 pm

Please install the LiveHTTP Headers extension to see, what your Firefox is doing exactly.

But s9y should only put the data in, which your browser submits. Some buggy firefox versions submitted forms twice, I've already seen that happen...

Best 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/

Guest

Post by Guest » Thu Nov 17, 2005 8:36 am

You are right... This is definitely Browser-dependent. The error occurs with Firefox 1.5RC2 also. The odd thing is in my own S9Y 0.9 installation using the same PHP version the error does NOT occur... Strange.

Well OK... a 'chmod 0440 serendipity_config_local.inc.php' must do it for the time being.

Rene

Post Reply