Drupal url problem with clean urls

Created on 20 July 2008, about 16 years ago
Updated 18 July 2024, 3 months ago

Drupal has a problem when clean urls are enabled.

Because mod_rewrite decodes the url query, anything in the query needs to be double encoded. The old code, and the code in the CVS patch you showed, only double encodes '%2f', '%26' and '%23' (most commonly used in URLs). However, it should double encode .

This problem can be seen with an attached file with a '+' in the name (eg, an attachment called 'apples+oranges.png'). This turns into '%2b' but the percent sign is not double encoded like it should be, and the link is broken with clean urls enabled.

This is corrected by the attached patch.

🐛 Bug report
Status

Closed: outdated

Version

6.0 ⚰️

Component
File system 

Last updated about 4 hours ago

Created by

🇦🇺Australia mattconnolly

Live updates comments and jobs are added and updated live.
  • Regression

    It restores functionality that was present in earlier versions.

  • API change

    Changes an existing API or subsystem. Not backportable to earlier major versions, unless absolutely required to fix a critical bug.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024