Download & Extend

libcurl not following redirects

Project:Aggregation
Version:5.x-4.8
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

I was getting errors in my Drupal log such as:

HTTP request returned error code "307" while processing feed "J. Timothy King's Blog" on "http://blog.jtimothyking.com/feed"

Indeed, that URL returned a 307 redirect to a FeedBurner feed. All as it should be. Furthermore, this redirect had always worked before. I traced the problem down to line 1192 of aggregation.module:

if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off'))

... should instead be...

if (ini_get('open_basedir') == '' && ini_get('safe_mode') == 'Off')

(Do you see the misplaced parenthesis in the ini_get('safe_mode') expression?)

-TimK

Comments

#1

Actually, I believe the line ought to read as follows:

if (!ini_get('open_basedir') && !ini_get('safe_mode'))

Maybe someone who's more familiar with ini_get can verify.

-TimK

nobody click here