Renamed check_domain_blocklist to blocked_url

- Remove debug
This commit is contained in:
Hypolite Petovan 2017-04-26 00:23:01 -04:00
commit 188d3a6f5e
4 changed files with 11 additions and 13 deletions

View file

@ -272,7 +272,6 @@ function admin_content(App $a) {
*/
function admin_page_blocklist(App $a) {
$blocklist = Config::get('system', 'blocklist');
var_dump($blocklist);
$blocklistform = array();
if (is_array($blocklist)) {
foreach($blocklist as $id => $b) {

View file

@ -514,7 +514,7 @@ function dfrn_request_post(App $a) {
return; // NOTREACHED
}
if (! check_domain_blocklist($url)) {
if (blocked_url($url)) {
notice( t('Blocked domain') . EOL);
goaway(App::get_baseurl() . '/' . $a->cmd);
return; // NOTREACHED