security fix shieet
This commit is contained in:
parent
38b97a26e5
commit
5b8c9eaed7
2 changed files with 63 additions and 54 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue