File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ public static function create($request, array $config = array())
4848 $ error = $ request ->getError ();
4949
5050 if (empty ($ error )) {
51- throw new Exceptions \InvalidUrlException (sprintf ("The url '%s' returns the http code %s " , $ request ->getUrl (), $ request ->getHttpCode ()));
51+ throw new Exceptions \InvalidUrlException (sprintf ("The url '%s' returns the http code %s " , htmlentities ( $ request ->getUrl () ), $ request ->getHttpCode ()));
5252 }
5353
54- throw new Exceptions \InvalidUrlException (sprintf ("The url '%s' returns the following error: %s " , $ request ->getUrl (), $ error ));
54+ throw new Exceptions \InvalidUrlException (sprintf ("The url '%s' returns the following error: %s " , htmlentities ( $ request ->getUrl () ), $ error ));
5555 }
5656
5757 /**
You can’t perform that action at this time.
0 commit comments