Ignore:
Timestamp:
May 14, 2019 2:17:07 AM (5 years ago)
Author:
anonymous
Message:

Fix minor bugs. Detect http port and add to site_port, site_url, and page_url params of App.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Utilities.inc.php

    r672 r679  
    14521452    $ch = curl_init($url);
    14531453    curl_setopt($ch, CURLOPT_TIMEOUT, 5);
     1454    curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
    14541455    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    1455     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
     1456    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
    14561457    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36");
    14571458    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Don't pass through data to the browser.
Note: See TracChangeset for help on using the changeset viewer.