Page 1 of 1

S9Y overwriting DB settings when saving config

Posted: Mon Nov 14, 2005 10:47 pm
by ReneSchmidt
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. :)

Re: Bugbugbug

Posted: Tue Nov 15, 2005 1:28 pm
by Guest
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

Re: Bugbugbug

Posted: Tue Nov 15, 2005 8:51 pm
by ReneSchmidt
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...

Re: Bugbugbug

Posted: Tue Nov 15, 2005 9:25 pm
by garvinhicking
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

Posted: Thu Nov 17, 2005 8:36 am
by Guest
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