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.
The file key provider method does not correctly calculate the location of the file when retrieving the key from the file. It fails to include a slash between the directory and the file name, resulting in an error. The only way to make it work is to include a trailing slash when defining the directory, which results in a double slash (//) appearing when the location is calculated elsewhere, but does not otherwise appear to cause a problem.
Comment | File | Size | Author |
---|---|---|---|
#1 | set-key-file-location-correctly-2077147-0.patch | 2.21 KB | rlhawk |
Comments
Comment #1
rlhawkThe attached patch fixes the way the file location is calculated when retrieving a key from a file, so that a trailing slash in the directory isn't necessary. It also adds an update hook that removes the trailing slash from any existing settings and removes any trailing slash when the directory is submitted on the configuration page.
Comment #2
rlhawkDue to other changes, this patch is no longer needed.