Change __toString() to get encoded url string
This commit is contained in:
parent
7c58b3ced1
commit
53388a3940
|
@ -866,6 +866,6 @@ class Url
|
|||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return $this->getAbsoluteUrl('&');
|
||||
return htmlspecialchars($this->getAbsoluteUrl(), ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML5, 'UTF-8', true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue