diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-09-26 11:45:46 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-11-05 19:44:15 +0100 |
commit | 6ad2fad4ced986497759abe657f71481b0e497a7 (patch) | |
tree | e7eaee7e594970e633d63be1995ec28c9728f206 | |
parent | 4b841ede3710a6d19bf95c349ccd959695fa17dd (diff) |
Drop user agent based cli client detection
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | application/helpers/filebin_helper.php | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php index 29c7d6eb8..81f330f68 100644 --- a/application/helpers/filebin_helper.php +++ b/application/helpers/filebin_helper.php @@ -94,13 +94,6 @@ 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", "curl/"); - foreach ($clients as $client) { - if (isset($_SERVER['HTTP_USER_AGENT']) && strpos($_SERVER['HTTP_USER_AGENT'], $client) !== false) { - $is_cli = true; - } - } } return $is_cli; } |