Fix issue 366, Problem when shaaring a link in Reader View of Firefox.
This commit is contained in:
parent
5816801b15
commit
ecd051905f
1 changed files with 15 additions and 1 deletions
|
@ -125,6 +125,19 @@ public function __construct($url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
private function removeFirefoxAboutReader($input){
|
||||||
|
$output_array = [];
|
||||||
|
preg_match("%^about://reader\?url=(.*)%", $input, $output_array);
|
||||||
|
if(!empty($output_array)){
|
||||||
|
$extractedUrl = preg_replace("%^about://reader\?url=(.*)%", "$1", $input);
|
||||||
|
$url = urldecode($extractedUrl);
|
||||||
|
}else{
|
||||||
|
$url = $input;
|
||||||
|
}
|
||||||
|
return $url;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a string representation of this URL
|
* Returns a string representation of this URL
|
||||||
*/
|
*/
|
||||||
|
@ -187,7 +200,8 @@ public function cleanup()
|
||||||
{
|
{
|
||||||
$this->cleanupQuery();
|
$this->cleanupQuery();
|
||||||
$this->cleanupFragment();
|
$this->cleanupFragment();
|
||||||
return $this->toString();
|
$url = $this->toString();
|
||||||
|
return $this->removeFirefoxAboutReader($url);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue