Download & Extend

WoW Head support doesn't work when allow_url_fopen = Off in php.ini

Project:Lootz Item Filter
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

wowhead.inc uses get_file_contents instead of drupal_http_request function to get the content of the pages. This is not allowed when allow_url_fopen is disabled in php.ini.
Attached patch changes wowhead.inc to use drupal_http_request instead of get_file_contents so that it will run when allow_url_fopen = Off

AttachmentSize
http_request.diff4.49 KB

Comments

#1

Here is another version of the patch which includes the 302 redirect fix

AttachmentSize
http_request_2.diff 4.89 KB
nobody click here