rathena / FluxCP

A web-based Control Panel for rAthena servers written in PHP. Manage player accounts, databases, support tickets, etc via your browser.
GNU Lesser General Public License v3.0
180 stars 211 forks source link

Fix null check for baseuri #352

Closed vstumpf closed 1 year ago

vstumpf commented 1 year ago

Fixes #351.

I added a check if baseURI was null, and if not, handle it. This causes an issue where baseURI is empty, because the if ($string) check returns false if $string is empty. Because users' BaseURI was empty, we never set it to the default /, causing this issue.