base_url() and site_url() in CI_3.0.3 |
Hello, I using site_url method for load css and js file in my app.
and today I up to CI_3.0.3, site_url is not working I can not load css and js file. now I must set my domain in $config['base_url'] (not empty) and then site_url is working. my question in CI_3.0.3 is : why site_url is not working and why I must set my domain in $config['base_url'] ? (in CI_3.0.2 site_url method is working when $config['base_url'] is empty) sorry, my eng is bad. thank you.
See Change log: http://www.codeigniter.com/user_guide/changelog.html
> Changed Config Library method base_url() to fallback to $_SERVER['SERVER_ADDR'] when $config['base_url'] is empty in order to avoid Host header injections. The reason is to avoid Host header injections.
You're welcome.
I found that User Guide has clear explanation how to do. http://www.codeigniter.com/user_guide/in...-not-empty |
Welcome Guest, Not a member yet? Register Sign In |