}
}
+
+ 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
*/
{
$this->cleanupQuery();
$this->cleanupFragment();
- return $this->toString();
+ $url = $this->toString();
+ return $this->removeFirefoxAboutReader($url);
}
/**