2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
// The destination is removed rather than sanitized because the URL
// generator service is not available and this method is called very
// early in the bootstrap.
$bag->remove('destination');
$sanitized=TRUE;
if($log_sanitized_keys){
trigger_error(sprintf('Potentially unsafe destination removed from %s parameter bag because it contained the following keys: %s',$bag_name,implode(', ',$destination_dangerous_keys)));
}
}
$request->attributes->set(self::SANITIZED,TRUE);
}
return$request;
return$sanitized;
}
/**
* Checks a destination string to see if it is dangerous.
*
* @param string $destination
* The destination string to check.
* @param array $whitelist
* An array of keys to whitelist as safe.
*
* @return array
* The dangerous keys found in the destination parameter.