mirror of
https://git.bakhai.co.in/FbIN/4Get.git
synced 2025-11-05 04:21:31 +05:30
Updated from main
This commit is contained in:
parent
c6e404d2af
commit
a08568f2c2
1 changed files with 6 additions and 1 deletions
|
|
@ -15,7 +15,12 @@ class favicon{
|
|||
|
||||
header("Content-Type: image/png");
|
||||
|
||||
if(substr_count($url, "/") !== 2){
|
||||
if(
|
||||
preg_match(
|
||||
'/^https?:\/\/[A-Za-z0-9.-]+$/',
|
||||
$url
|
||||
) === 0
|
||||
){
|
||||
|
||||
header("X-Error: Only provide the protocol and domain");
|
||||
$this->defaulticon();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue