summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2016-09-26 11:45:46 +0200
committerFlorian Pritz <bluewind@xinu.at>2016-11-01 17:29:04 +0100
commitd5b0f05aea9bd69adedd76c33b9439ee01342041 (patch)
treecada503c0e00cb8640ecc32194cdb443d4910a71
parenta34252967563036feeb86340daf27e62575820f6 (diff)
Drop user agent based cli client detection
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/helpers/filebin_helper.php7
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;
}