Skip to content

Commit

Permalink
Stripped PMA version from curl user-agent to increase consitency and …
Browse files Browse the repository at this point in the history
…security

Signed-off-by: Fenn-CS <fenn25.fn@gmail.com>
  • Loading branch information
Fenn-CS authored and nijel committed Mar 14, 2017
1 parent c60da70 commit 2849c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -4760,7 +4760,7 @@ public static function httprequestcurl($url, $method, $return_only_status = fals
);
}
}
$curl_status &= curl_setopt($curl_handle, CURLOPT_USERAGENT, 'phpMyAdmin/' . PMA_VERSION);
$curl_status &= curl_setopt($curl_handle, CURLOPT_USERAGENT, 'phpMyAdmin');

if ($method != "GET") {
$curl_status &= curl_setopt($curl_handle, CURLOPT_CUSTOMREQUEST, $method);
Expand Down

0 comments on commit 2849c0c

Please sign in to comment.