From cce1fe9bfea359cebae585eaaa944650bace4966 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 4 Sep 2013 14:59:34 +0200 Subject: Only store session information for stateful clients Signed-off-by: Florian Pritz --- application/helpers/filebin_helper.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'application/helpers') diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php index 7ba68b839..53fc4f280 100644 --- a/application/helpers/filebin_helper.php +++ b/application/helpers/filebin_helper.php @@ -356,4 +356,19 @@ function static_storage($key, $value = null) return $storage[$key]; } +function stateful_client() +{ + $CI =& get_instance(); + + if ($CI->input->post("apikey")) { + return false; + } + + if (is_cli_client()) { + return false; + } + + return true; +} + # vim: set noet: -- cgit v1.2.3-24-g4f1b