Skip to content

Commit

Permalink
Allow excluded sites to be newline or space separated in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jlicht committed Sep 4, 2014
1 parent 4f48300 commit b377bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amber/amber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b377bb2

Please sign in to comment.