From 151cddad5bb0b700e3c3aeb1f40e58b066b45a34 Mon Sep 17 00:00:00 2001 From: Massimo Melina Date: Sat, 13 Jun 2020 20:36:00 +0200 Subject: [PATCH] no need to invalidate session in this case, it was not compromised --- default.tpl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/default.tpl b/default.tpl index ba13135..343c4ab 100644 --- a/default.tpl +++ b/default.tpl @@ -594,7 +594,7 @@ z-index:1; /* without this .item-menu will be over*/ } {.if|{.length|{.set account||password={.postvar|new.}.}/length.}|ok|failed.} [special:alias] -check session=if|{.{.cookie|HFS_SID_.} != {.postvar|token.}.}|{:{.cookie|HFS_SID_|value=|expires=-1.} {.break|result=bad session.}:} +check session=break|if={.{.cookie|HFS_SID_.} != {.postvar|token.}.}|result=bad token can mkdir=and|{.get|can upload.}|{.!option.newfolder.} can comment=and|{.get|can upload.}|{.!option.comment.} can rename=and|{.get|can delete.}|{.!option.rename.} @@ -789,10 +789,7 @@ function getStdAjaxCB(what2do) { if (res === "ok") return (typeof what2do==='function') ? what2do() : location.reload() showLoading(false) - showError(res, function(){ - if (res === 'bad session') - location.reload() - }) + showError(res) } }//getStdAjaxCB