* Do not store an unnecessary config value for check_password

and password user properties. Thanks to jenzo from the forums!
      (garvinhicking)
This commit is contained in:
Garvin Hicking 2007-02-14 14:06:41 +00:00
parent 50401a7d02
commit bf196aa3ea
2 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,10 @@
Version 1.2 ()
------------------------------------------------------------------------
* Do not store an unnecessary config value for check_password
and password user properties. Thanks to jenzo from the forums!
(garvinhicking)
* Update spamblock plugin to update a .htaccess file with DENY
rules based on recent spammer IPs. EXPERIMENTAL.

View File

@ -97,6 +97,11 @@ function serendipity_set_config_var($name, $val, $authorid = 0) {
global $serendipity;
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}config where name='" . serendipity_db_escape_string($name) . "' AND authorid = " . (int)$authorid);
if ($name == 'password' || $name == 'check_password') {
return;
}
$r = serendipity_db_insert('config', array('name' => $name, 'value' => $val, 'authorid' => $authorid));
if ($authorid === 0 || $authorid === $serendipity['authorid']) {