https://issues.apache.org/bugzilla/show_bug.cgi?id=54580
Nikolas Kallis <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID |--- --- Comment #24 from Nikolas Kallis <[email protected]> --- I can't code in C, but I can in PHP. I am going to use this piece of PHP code for the purpose of demonstrating its logic, and how this logic can be applied to the C code for Apache, to fix this bug: // Logic $redirecturl = 'example.com'; $_POST['request'] = '/foobar/'; if ($_POST['request'] != $redirecturl) {$redirecturl = $redirecturl.$_POST['request'];} header('Location: $redirecturl'); Which turns out to be: if (/foobar/ != example.com) {$redirecturl = 'example.com/foobar/';} // This in turn would make the following: header('Location: example.com/foobar/'); // Else, if someone is entering via FQDN: header('Location: example.com'); So there you have it, my problem solved without breaking functionality that others users. Thanks for the RedirectMatch demo. I will check it out if this bug doesn't get fixed any time soon. Reudiger Pluem, you should learn to shut your mouth. You, along with your ignorant/arrogant pals just got put in your place by a PHP coder. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
