Skip to content
Snippets Groups Projects
Commit 26a3b789 authored by Jared Hancock's avatar Jared Hancock
Browse files

upgrader: Fix 1.6 banlist corruption on upgrade

parent 8cf68502
Branches
Tags
No related merge requests found
......@@ -246,6 +246,7 @@ class Filter {
return false;
foreach ($this->getRules() as $rule) {
if (!isset($how[$rule['h']])) continue;
list($func, $pos, $neg) = $how[$rule['h']];
# TODO: convert $what and $rule['v'] to mb_strtoupper and do
# case-sensitive, binary-safe comparisons. Would be really
......
......@@ -224,7 +224,7 @@ CREATE TABLE `%TABLE_PREFIX%email_filter_rule` (
-- SYSTEM BAN LIST was the first filter created, with ID of '1'
INSERT INTO `%TABLE_PREFIX%email_filter_rule` (`filter_id`, `what`, `how`, `val`)
SELECT LAST_INSERT_ID(), 'email', 'equals', email FROM `%TABLE_PREFIX%email_banlist`;
SELECT LAST_INSERT_ID(), 'email', 'equal', email FROM `%TABLE_PREFIX%email_banlist`;
-- Create table session
DROP TABLE IF EXISTS `%TABLE_PREFIX%session`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment