$_SERVER['REQUEST_URI'] does not work on all platforms

stella - October 2, 2008 - 20:35
Project:ImageCache
Version:5.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,

The imagecache.module uses $_SERVER['REQUEST_URI'] which isn't supported by all webservers. IIRC it works on Apache but not on IIS and others. The Drupal request_uri() function should be used instead. The attached patch makes this one small change.

Cheers,
Stella

AttachmentSize
imagecache_request_uri.patch822 bytes

#1

drewish - October 8, 2008 - 01:34
Version:HEAD» 5.x-2.x-dev
Status:patch (code needs review)» patch (to be ported)

committed to HEAD, need to be backported.

#2

drewish - October 29, 2008 - 21:40
Status:patch (to be ported)» fixed

actually doesn't apply to older versions.

#3

Anonymous (not verified) - November 12, 2008 - 22:14
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.