Clean up insertWord()

This commit is contained in:
Kijin Sung 2016-12-13 20:05:01 +09:00
parent 6ecdd499e4
commit 0af94a2275
2 changed files with 30 additions and 14 deletions

View file

@ -173,6 +173,11 @@ class spamfilterController extends spamfilter
foreach ($ipaddress_list as $ipaddress)
{
if ($ipaddress === '')
{
continue;
}
$args = new stdClass;
if (preg_match('@^(.+?)(?://|#)(.*)$@', $ipaddress, $matches))
{