Skip to content

Commit

Permalink
Blocking the shortcut of the current site
Browse files Browse the repository at this point in the history
  • Loading branch information
YehudaEi committed Apr 12, 2021
1 parent 417016d commit 92d6262
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion public/include/func.php
Expand Up @@ -54,7 +54,9 @@ function validLink($link){
return false;
if(strpos(parse_url($link, PHP_URL_HOST), "="))
return false;

if(parse_url($link, PHP_URL_HOST) == SITE_DOMAIN)
return false;

return true;
}

Expand Down

0 comments on commit 92d6262

Please sign in to comment.