Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloud.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-21 14:29:00 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-02-21 14:29:00 +0300
commita5705ffb72321b90c645be46ff47e29f1c8b56c2 (patch)
tree61e8f145787acdd113986e9659ec1c8a5e0177ad /base.php
parent1df1cace9ba473cf842b51318a955e5a94e155b0 (diff)
Do not cache submit forms
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'base.php')
-rw-r--r--base.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/base.php b/base.php
index bace2898..9fe7e2a2 100644
--- a/base.php
+++ b/base.php
@@ -234,6 +234,10 @@ if(isset($language[1]) && $language[1] === 'de') {
echo file_get_contents($cacheFile);
$echoed = true;
}
+ # do not store submit forms to the cache
+ if(strpos(get_post()->post_name, 'submit') !== false) {
+ $storeToCache = false;
+ }
if($storeToCache === true) {
file_put_contents($cacheFile, $html);
if(file_exists($cacheFile)) {