Commit ef54042d authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '46-anonymisierung-von-useragent-und-ip-adresse-einbauen' into 'master'

Quicktips benutzen nicht mehr Curl

Closes #46

See merge request !49
parents c649245e 4e23a83e
......@@ -136,14 +136,7 @@ class MetaGerSearch extends Controller
function get($url) {
$process = curl_init($url);
curl_setopt($process, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($process, CURLOPT_TIMEOUT, 30);
curl_setopt($process, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($process, CURLOPT_FOLLOWLOCATION, 1);
$return = curl_exec($process);
return $return;
return file_get_contents($url);
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment