Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-2511

Wrong variable used in includes/common.inc.php

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • Professional Edition
    • Alerting
    • None

    Description

      It seems something's changed recently and a variable ($request) wasn't translated properly from $url.

       

      This seems to fix that particular issue

       

      Index: includes/common.inc.php
      ===================================================================
      — includes/common.inc.php (revision 8942)
      +++ includes/common.inc.php (working copy)
      @@ -3553,7 +3553,7 @@
      $GLOBALS['request_status'] = FALSE;

      // Validate host from url and check if it timeout request

      • if (gethostbyname6(parse_url($url, PHP_URL_HOST)))
        + if (gethostbyname6(parse_url($request, PHP_URL_HOST)))
        {
        // Timeout error, only if not received response headers
        define('OBS_HTTP_REQUEST', FALSE);

      Attachments

        Activity

          People

            landy Mike Stupalov
            jhodgkinson James Hodgkinson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: