Meka try karapan ban meka weda
PHP:header("Location:../index.php");
Nope machan. The Location header MUST be an absolute URL as per the standards.
Meka try karapan ban meka weda
PHP:header("Location:../index.php");
Nope machan. The Location header MUST be an absolute URL as per the standards.




There is a header injection vulnerability here.

didn't think about it 

Nope machan. The Location header MUST be an absolute URL as per the standards.

but this is working for me bro. its give me wht i wont.
can u tel wht is the correct way or method ???![]()
You need a way in your application to generate proper URLs from path.
You are never going to be a better programmer if you ignore the standards or let alone be aware you are breaking them. It works because browsers are sophisticated enough to figure out the proper URL, but what about wget, curl, lynx, search engines, etc?
Here is the spec: https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30


මුල ඉඳන් පිලිවෙලකට කරා නම් හෙඳයි කියලා හිතෙනවා




pora index eke inda anith page ekata kalin yanawa ne.. so, me code eken aye back wenna try karoth aye index eken redirect wenawa kalin page ekata.. so, end wenne neti loop ekak awith crash wenawa.


Nope machan. The Location header MUST be an absolute URL as per the standards.

