Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Secure pages module is not working with uppercase characters in URL
When we specify url that have uppercase letters the module doesn't work for those pages
The solution
Remove the drupal_strtolower() when we get the list of urls in saved.
Comment | File | Size | Author |
---|---|---|---|
#3 | interdiff-2767095-2-3.txt | 1.52 KB | rodrigoeg |
#3 | 2767095-3.patch | 1.64 KB | rodrigoeg |
#2 | uppercaseurlnotworking-2767095-11405475.patch | 872 bytes | Yago Elias |
Comments
Comment #2
Yago Elias CreditAttribution: Yago Elias at CI&T commentedComment #3
rodrigoeg CreditAttribution: rodrigoeg at CI&T commented- Version of the bug changed to 1.x-dev since it also affects the dev version.
- Changing the priority because it only affects a few scenarios.
Maybe this patch will break the compatibility with sites currently using this module, because the sites can have URLs working with secure pages but with upper cases in configuration.
Also, Block module from Drupal core compares the URLs using lower case (check block.module code snippet bellow):
block.module
The function drupal_strtolower() could be used to convert the drupal_get_path_alias() calls. With this change, the module will behave the same as the Block module from Drupal core.