* 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:
parent
50401a7d02
commit
bf196aa3ea
@ -3,6 +3,10 @@
|
|||||||
Version 1.2 ()
|
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
|
* Update spamblock plugin to update a .htaccess file with DENY
|
||||||
rules based on recent spammer IPs. EXPERIMENTAL.
|
rules based on recent spammer IPs. EXPERIMENTAL.
|
||||||
|
|
||||||
|
@ -97,6 +97,11 @@ function serendipity_set_config_var($name, $val, $authorid = 0) {
|
|||||||
global $serendipity;
|
global $serendipity;
|
||||||
|
|
||||||
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}config where name='" . serendipity_db_escape_string($name) . "' AND authorid = " . (int)$authorid);
|
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));
|
$r = serendipity_db_insert('config', array('name' => $name, 'value' => $val, 'authorid' => $authorid));
|
||||||
|
|
||||||
if ($authorid === 0 || $authorid === $serendipity['authorid']) {
|
if ($authorid === 0 || $authorid === $serendipity['authorid']) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user