Skip to content
Snippets Groups Projects
Commit 102efecd authored by André Noack's avatar André Noack
Browse files

Resolve #5029 "„Error: Fehlende Session.“ beim Aufruf einer falschen Trails URL"

Closes #5029

Merge request studip/studip!3800
parent c70749a6
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,7 @@ if ($navigation) {
<? else: ?>
<li>
<form method="post" action="<?= URLHelper::getLink(Request::url(), ['cancel_login' => null]) ?>">
<?= CSRFProtection::tokenTag() ?>
<? try {echo CSRFProtection::tokenTag();} catch (SessionRequiredException){}?>
<input type="hidden" name="user_config_submitted" value="1">
<div id="contrast">
<? if (!empty($_SESSION['contrast'])): ?>
......
<form id="language-selector" method="POST" action="<?= URLHelper::getLink(Request::url(), ['cancel_login' => null]) ?>">
<?= CSRFProtection::tokenTag() ?>
<? try {echo CSRFProtection::tokenTag();} catch (SessionRequiredException){}?>
<input type="hidden" name="user_config_submitted" value="1">
<select id="languages" name="set_language" class="select2" onchange="this.form.submit()">
<? foreach ($GLOBALS['INSTALLED_LANGUAGES'] as $temp_language_key => $temp_language): ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment