summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMS <ms@taler.net>2022-10-26 17:08:53 +0200
committerMS <ms@taler.net>2022-10-26 17:08:53 +0200
commit16ced5ae119dbff16ec3b8d1a2a6a8037e72e684 (patch)
treeb0e652ec4a160c8e22e6792e6e55e2c07a863278
parentd84c9986e4ded0f13552a508555ead951ba4f99c (diff)
downloadtaler-merchant-demos-16ced5ae119dbff16ec3b8d1a2a6a8037e72e684.tar.gz
taler-merchant-demos-16ced5ae119dbff16ec3b8d1a2a6a8037e72e684.tar.bz2
taler-merchant-demos-16ced5ae119dbff16ec3b8d1a2a6a8037e72e684.zip
survey: tolerate undefined script_name.
That used to break the survey <form>, as the action URI could not be constructed.
-rw-r--r--talermerchantdemos/templates/survey-index.html.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/talermerchantdemos/templates/survey-index.html.j2 b/talermerchantdemos/templates/survey-index.html.j2
index 4a804fb..3af0d5b 100644
--- a/talermerchantdemos/templates/survey-index.html.j2
+++ b/talermerchantdemos/templates/survey-index.html.j2
@@ -8,7 +8,7 @@
</p>
</div>
<div>
- <form action="{{ script_name + "/" + getlang() + "/submit-survey" }}" method="post" class="pure-form pure-form-stacked">
+ <form action="{{ script_name or "" + "/" + getlang() + "/submit-survey" }}" method="post" class="pure-form pure-form-stacked">
<fieldset>
<legend>{{ gettext("Which payment system do you prefer?") }}</legend>
<label for="option-taler">