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())
48
48
$ error = $ request ->getError ();
49
49
50
50
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 ()));
52
52
}
53
53
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 ));
55
55
}
56
56
57
57
/**
You can’t perform that action at this time.
0 commit comments