One final piece of information. Lines 208-224 of mod_protected_links looks like this:
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, str_replace('/','/',$url)); curl_setopt($curl, CURLOPT_HEADER, false); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) { curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true); } curl_setopt($curl, CURLOPT_CURL_VERBOSE, false); curl_setopt($curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ; curl_setopt($curl, CURLOPT_SSLVERSION, 3); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0'); $out = curl_exec($curl); $error = curl_error($curl); curl_close($curl);
When I click a link, eventually I see a fatal PHP error message:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 18941840 bytes) in /[snipped]/expressionengine/third_party/protected_links/mod.protected_links.php on line 221
I’ll set up the dev server so you can have access.
|