summaryrefslogtreecommitdiffstats
path: root/application/helpers/filebin_helper.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-06-09 12:58:47 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-06-09 12:58:47 +0200
commit3e5880fd1d0da03c57019c55de5d9877b4d13720 (patch)
tree38db812fede42c0ee51fffd3faa72ab730c4bad7 /application/helpers/filebin_helper.php
parent27ba952bf8e0199c6f96a31d0d68ad7abca43b6a (diff)
detect new curl user agent
curl 7.26.0 changed the user agent format to "curl/$version" and no longer sends the library version. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/helpers/filebin_helper.php')
-rw-r--r--application/helpers/filebin_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php
index f6663144e..df4a453f7 100644
--- a/application/helpers/filebin_helper.php
+++ b/application/helpers/filebin_helper.php
@@ -181,7 +181,7 @@ function is_cli_client($override = null)
if ($is_cli === null) {
$is_cli = false;
// official client uses "fb-client/$version" as useragent
- $clients = array("fb-client", "libcurl", "pyfb");
+ $clients = array("fb-client", "libcurl", "pyfb", "curl/");
foreach ($clients as $client) {
if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], $client) !== false) {
$is_cli = true;