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.
If query arguments are included in a remote stream URI the test for file extensions will fail.
Patch to fix this follows.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1472378-remote_stream_wrapper-strip_query_args-3.patch | 657 bytes | elliotttf |
#1 | 1472378-remote_stream_wrapper-strip_query_args.patch | 570 bytes | elliotttf |
Comments
Comment #1
elliotttf CreditAttribution: elliotttf commentedPatch to strip query arguments from file basenames.
Comment #2
elliotttf CreditAttribution: elliotttf commentedComment #3
elliotttf CreditAttribution: elliotttf commentedMissed a line on the first patch, here's a correct version.
Comment #4
Dave ReidThanks, I committed this using $path = parse_url($uri, PHP_URL_PATH) which I prefer to use over regex if possible.
http://drupalcode.org/project/remote_stream_wrapper.git/commit/6cc8a9e