Added option in CLI to disable query forwarding when creating Short URLs

This commit is contained in:
Alejandro Celaya
2021-10-02 10:45:00 +02:00
parent e21f9dd1fb
commit 0c95b978b4
3 changed files with 19 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ class UrlValidator implements UrlValidatorInterface, RequestMethodInterface
*/
public function validateUrl(string $url, ?bool $doValidate): void
{
// If the URL validation is not enabled or it was explicitly set to not validate, skip check
// If the URL validation is not enabled, or it was explicitly set to not validate, skip check
$doValidate = $doValidate ?? $this->options->isUrlValidationEnabled();
if (! $doValidate) {
return;