From 6726b92617a477a942618fb36bddc17596dba555 Mon Sep 17 00:00:00 2001 From: Aidaho12 Date: Sun, 13 May 2018 00:11:58 +0600 Subject: [PATCH] v2.5.4.2 improved Add pages --- app/add.py | 6 +++++- app/templates/add.html | 18 ++++++++++-------- inc/script.js | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 9 deletions(-) diff --git a/app/add.py b/app/add.py index ba78cbf4..81745bd2 100644 --- a/app/add.py +++ b/app/add.py @@ -115,6 +115,10 @@ if form.getvalue('mode') is not None: rewrite = form.getvalue('rewrite') else: rewrite = "" + if form.getvalue('prefix'): + prefix = form.getvalue('prefix') + else: + prefix = "" if form.getvalue('nocache'): nocache = form.getvalue('nocache') else: @@ -127,7 +131,7 @@ if form.getvalue('mode') is not None: dynamic = form.getvalue('dynamic') else: dynamic = "" - cookie += " "+rewrite+" "+nocache+" "+postonly+" "+dynamic+"\n" + cookie += " "+rewrite+" "+prefix+" "+nocache+" "+postonly+" "+dynamic+"\n" options_split += cookie if form.getvalue('dynamic'): options_split += " dynamic-cookie-key " + form.getvalue('dynamic-cookie-key')+"\n" diff --git a/app/templates/add.html b/app/templates/add.html index 0e99c6ef..43a4fa6a 100644 --- a/app/templates/add.html +++ b/app/templates/add.html @@ -86,14 +86,15 @@