aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaude <longneck@scratchbook.ch>2018-09-28 16:58:23 +0200
committerClaude <longneck@scratchbook.ch>2018-09-28 16:58:23 +0200
commit83f52c2f38220755ed6fd5efa38ee1f64b3e2ad1 (patch)
treebe4011bcea0e83431abc8263308b6770a30d401d
parentd5ffd5795641a6209863dc008c3b98e09472557e (diff)
downloadstikked-fit-83f52c2f38220755ed6fd5efa38ee1f64b3e2ad1.tar.gz
stikked-fit-83f52c2f38220755ed6fd5efa38ee1f64b3e2ad1.tar.bz2
stikked-fit-83f52c2f38220755ed6fd5efa38ee1f64b3e2ad1.zip
use default expiration when expiration is not set via api. fixes #480
-rw-r--r--htdocs/application/controllers/Api.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/htdocs/application/controllers/Api.php b/htdocs/application/controllers/Api.php
index e2f7c98..2ed5cb0 100644
--- a/htdocs/application/controllers/Api.php
+++ b/htdocs/application/controllers/Api.php
@@ -96,6 +96,11 @@ class Api extends Main
}
}
+ if (!$this->input->post('expire'))
+ {
+ $_POST['expire'] = config_item('default_expiration');
+ }
+
//create paste
$paste_url = $this->pastes->createPaste();
$data['msg'] = base_url() . $paste_url;

© 2014-2024 Faster IT GmbH | imprint | privacy policy