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]: e_QUERY test fails in page.php with root namespace = "page" #5237

Open Jimmi08 opened 2 months ago

Jimmi08 commented 2 months ago

What e107 version are you using?

v2.3.3, Latest Github version (just updated)

Bug description

This test fails because e_QUERY is empty - string '' (length=0)

if(!e_QUERY && e_PAGE == "page.php")

How to reproduce

  1. Associate root namespaces to page (regardless first setting)

image

  1. set page listing OFF

image

  1. go to the homepage and add any parameter to URL

Expected behavior

Stay on homepage

Workaround:

if(!e_TBQS && e_PAGE == "page.php")

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

Chrome / Brave

PHP Version

7.4

Jimmi08 commented 2 months ago

Related: https://github.com/e107inc/e107/discussions/5170 https://github.com/e107inc/e107/issues/4565