Private folder incorrectly reported as accessible for https host

acrollet - October 17, 2008 - 14:53
Project:Private Upload
Version:5.x-1.0-rc2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

We have a server that has ssl forced - e.g., any requests for http://our.server.edu/ are automatically redirected to https://our.server.edu/. That creates a problem with the security checking code, as it tries to open a socket to port 80 on the same server, receives a 302, and concludes that the file is accessible. I'm attaching a patch to fix this issue...

thanks,

Adrian

AttachmentSize
private_upload.module.fsockopen.patch866 bytes

#1

asohn - September 4, 2009 - 17:47

Thank you for the patch!! Works great!

 
 

Drupal is a registered trademark of Dries Buytaert.