Set options array given to $sanitizer->url()
It should not be necessary to call this unless you are dealing with an unusual URL that is causing errors with the default options in WireHttp. Note that the “allowSchemes” option is set separately with the setAllowSchemes() method in this class.
To return current validate URL options, omit the $options argument.
Usage
// basic usage
$array = $http->setValidateURLOptions();
// usage with all arguments
$array = $http->setValidateURLOptions(array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
options (optional) | array | Options to set, see the $sanitizer->url() method for details on options. |
Return value
array
Always returns current options
API reference based on ProcessWire core version 3.0.236