Skip to content
Snippets Groups Projects
Commit d8375f45 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #869 from greezybacon/issue/upgrade-banlist-corruption


upgrader: Fix 1.6 banlist corruption on upgrade

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 8cf68502 26a3b789
Branches
Tags
No related merge requests found
...@@ -246,6 +246,7 @@ class Filter { ...@@ -246,6 +246,7 @@ class Filter {
return false; return false;
foreach ($this->getRules() as $rule) { foreach ($this->getRules() as $rule) {
if (!isset($how[$rule['h']])) continue;
list($func, $pos, $neg) = $how[$rule['h']]; list($func, $pos, $neg) = $how[$rule['h']];
# TODO: convert $what and $rule['v'] to mb_strtoupper and do # TODO: convert $what and $rule['v'] to mb_strtoupper and do
# case-sensitive, binary-safe comparisons. Would be really # case-sensitive, binary-safe comparisons. Would be really
......
...@@ -224,7 +224,7 @@ CREATE TABLE `%TABLE_PREFIX%email_filter_rule` ( ...@@ -224,7 +224,7 @@ CREATE TABLE `%TABLE_PREFIX%email_filter_rule` (
-- SYSTEM BAN LIST was the first filter created, with ID of '1' -- SYSTEM BAN LIST was the first filter created, with ID of '1'
INSERT INTO `%TABLE_PREFIX%email_filter_rule` (`filter_id`, `what`, `how`, `val`) 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 -- Create table session
DROP TABLE IF EXISTS `%TABLE_PREFIX%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