security fix shieet

This commit is contained in:
lolcat 2023-09-04 10:17:08 -04:00
parent 38b97a26e5
commit 5b8c9eaed7
2 changed files with 63 additions and 54 deletions

View file

@ -128,12 +128,9 @@ class proxy{
}
// sanitize URL
try{
if($this->validateurl($url) === false){
$this->validateurl($url);
}catch(Exception $error){
throw new Exception($error->getMessage());
throw new Exception("Invalid URL");
}
$this->clientcache();
@ -353,12 +350,9 @@ class proxy{
$this->format = $format;
// sanitize URL
try{
if($this->validateurl($url) === false){
$this->validateurl($url);
}catch(Exception $error){
throw new Exception($error->getMessage());
throw new Exception("Invalid URL");
}
$this->clientcache();