e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
318 stars 212 forks source link

[Bug]: not able to set language on signup page #5187

Open Jimmi08 opened 4 months ago

Jimmi08 commented 4 months ago

What e107 version are you using?

v2.3.3

Bug description

With language selector path is signup.php?elan=en

this ends in empty page (not blank, just no form) because this test in signup.php

if(e_QUERY && e_QUERY != 'stage1')

How to reproduce

Go to any site with multilan e107 and put this URL directly in browser

Expected behavior

Either this parameter is ignored or redirected back to signup.php

What browser(s) are you seeing the problem on?

Chrome / Brave

PHP Version

8.1

Jimmi08 commented 4 months ago

Solved this way in signup.php

if (substr(e_QUERY, 0, 4) == "elan")
{

    e107::redirect(e_SIGNUP);
    exit();
}