Download & Extend

drupal_http_request instead of file_get_contents

Project:SEO Watcher
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:realworksmedia
Status:needs review

Issue Summary

Hi,

Only noticed this as server security moans while trying to use file_get_contents.

Should we not use the Drupal schema drupal_http_request anyway?

My patch would be:

  // Line 1083

  //$html = file_get_contents($query);
  $result = drupal_http_request($query);
  $html = $result->data;

Paul

Comments

#1

Thanks for the information.
I will make the change with the next release. :-)

nobody click here