From bf196aa3ea682073616beffab3a54de606352075 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Wed, 14 Feb 2007 14:06:41 +0000 Subject: [PATCH] * Do not store an unnecessary config value for check_password and password user properties. Thanks to jenzo from the forums! (garvinhicking) --- docs/NEWS | 4 ++++ include/functions_config.inc.php | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/docs/NEWS b/docs/NEWS index 30a21cdc..61bbd515 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -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. diff --git a/include/functions_config.inc.php b/include/functions_config.inc.php index a49f8cf2..b6458298 100644 --- a/include/functions_config.inc.php +++ b/include/functions_config.inc.php @@ -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']) {