Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 4 base_url() bug
#1
Bug 
(This post was last modified: 04-22-2021, 11:58 AM by Muzikant.)

If I will add a file parameter to base_url() function, it will add an equal sign (=) to the end, which should not be there. I am considering this as a bug. I tested it in PHP 7.4 and 8.

The code

PHP Code:
echo base_url('favicon.ico' '?' 'v101'); 

will output

Code:
http://localhost/favicon.ico?v101=

I am using these parameters to force browsers to get the new versions of a files.
Reply


Messages In This Thread
CodeIgniter 4 base_url() bug - by Muzikant - 04-22-2021, 11:50 AM
RE: CodeIgniter 4 base_url() bug - by iRedds - 04-22-2021, 02:26 PM
RE: CodeIgniter 4 base_url() bug - by Muzikant - 04-23-2021, 05:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB