From 3e5880fd1d0da03c57019c55de5d9877b4d13720 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 9 Jun 2012 12:58:47 +0200 Subject: 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 --- application/helpers/filebin_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application') 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; -- cgit v1.2.3-24-g4f1b