|
@@ -37,9 +37,16 @@ class BaseFactory implements FactoryInterface
|
37
|
37
|
*
|
38
|
38
|
* @return string
|
39
|
39
|
*/
|
40
|
|
- protected function getCleanedUrl()
|
|
40
|
+ protected function getCleanedUrl($decode = false)
|
41
|
41
|
{
|
42
|
|
- $url = str_replace('www.', '', $this->element->getUrl());
|
|
42
|
+ // Procèdures de nettoyages après constat d'erreurs
|
|
43
|
+ $url = $this->element->getUrl();
|
|
44
|
+ if ($decode)
|
|
45
|
+ {
|
|
46
|
+ $url = urldecode($url);
|
|
47
|
+ }
|
|
48
|
+
|
|
49
|
+ $url = str_replace('www.', '', $url);
|
43
|
50
|
$url = str_replace('http://'.$this->element->getType(), '', $url);
|
44
|
51
|
$url = str_replace('https://'.$this->element->getType(), '', $url);
|
45
|
52
|
return $url;
|