summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-06-12 08:33:50 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-06-12 08:33:50 +0000
commitc2e2974f0b87e372caca065611423c27d00436b2 (patch)
tree628361462bdcf1c43cd193113386d489b649658a /modules/system/system.module
parentf0b5afb436e246fbd3830ddddcb559f1407a7e6f (diff)
downloadbrdo-c2e2974f0b87e372caca065611423c27d00436b2.tar.gz
brdo-c2e2974f0b87e372caca065611423c27d00436b2.tar.bz2
#245990 follow-up by Pedro Lozano: Tell system_http_check() not to follow redirects to avoid false error notifications.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index f2970a99a..fb309b827 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -3140,7 +3140,7 @@ function system_time_zones($blank = NULL) {
*/
function system_check_http_request() {
// Try to get the content of the front page via drupal_http_request().
- $result = drupal_http_request(url('', array('absolute' => TRUE)));
+ $result = drupal_http_request(url('', array('absolute' => TRUE, 'max_redirects' => 0)));
// We only care that we get a http response - this means that Drupal
// can make a http request.
$works = isset($result->code) && ($result->code >= 100) && ($result->code < 600);