From b377bb27c8b4a7ee529a0259aebce16a0ff9e467 Mon Sep 17 00:00:00 2001 From: Jeffrey Licht Date: Thu, 4 Sep 2014 16:09:20 -0400 Subject: [PATCH] Allow excluded sites to be newline or space separated in settings --- amber/amber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amber/amber.php b/amber/amber.php index a15542e..669d10f 100644 --- a/amber/amber.php +++ b/amber/amber.php @@ -325,7 +325,7 @@ private static function cache_links($links, $immediately = false) { */ private static function filter_excluded_links($links) { - $blacklist = explode(",",Amber::get_option("amber_excluded_sites","")); + $blacklist = preg_split("/[,\s]+/",Amber::get_option("amber_excluded_sites","")); if (!$blacklist) { return $links; }