Skip to content

Commit

Permalink
Update scripts/pi-hole/php/groups.php
Browse files Browse the repository at this point in the history
  • Loading branch information
PromoFaux authored Jan 13, 2021
1 parent c09263b commit 509a082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/pi-hole/php/groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ function JSON_error($message = null)
}

// this will remove first @ that is after schema and before domain
// $1 is optional schema, $2 is userinfo
// $1 is optional schema, $2 is userinfo
$check_address = preg_replace("|([^:/]*://)?([^/]+)@|", "$1$2", $address, 1);

if(preg_match("/[^a-zA-Z0-9:\/?&%=~._()-;]/", $check_address) !== 0) {
Expand Down

0 comments on commit 509a082

Please sign in to comment.