Download & Extend

Trailing '?' in image urls

Project:ImageCache
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The imagecache_create_url() function calls url() setting $query to FALSE rather than to NULL, this is causing url() to add a trailing '?' in URLs when $bypass_browser_cache = FALSE (default).

Attached patch corrects this.

Note: patch taken from imagecache.module file, since I did this change in SVN of one of my projects in a rush.

AttachmentSizeStatusTest resultOperations
imacache_querystring.patch689 bytesIgnored: Check issue status.NoneNone

Comments

#1

I can confirm that the patch works as described.
I did the same change before finding this issue.

#2

Status:needs review» reviewed & tested by the community

@riccardoR: thanks.

Setting this to RTBC.

#3

Can we get this one liner commited?

#4

Version:5.x-2.4» 6.x-2.x-dev
Priority:normal» minor

realized it was a problem in 6 as well and just back ported the patch i'd rolled for that to 5.

AttachmentSizeStatusTest resultOperations
imagecache_461104.D6.patch871 bytesIgnored: Check issue status.NoneNone
imagecache_461104.D5.patch866 bytesIgnored: Check issue status.NoneNone

#5

Status:reviewed & tested by the community» fixed

committed to HEAD and DRUPAL-5--2

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.