Ticket #998 (fixed bug)
Bug in validate_redirect() function
- Created: 2014-11-23 17:35:20
- Reported by: Visman
- Assigned to: quy
- Milestone: 1.5.8
- Component: code
- Priority: normal
Forum for test: _http://localhost/59
Open forum _http://localhost/59
Open login _http://localhost/59/login.php
In form
<input type="hidden" name="redirect_url" value="index.php" />
I enter my login and password. Login. Redirect.
And Errors:
Notice: Undefined index: host in C:\Program Files\VertrigoServ\www\59\include\functions.php on line 1185
Notice: Undefined index: host in C:\Program Files\VertrigoServ\www\59\include\functions.php on line 1202
line 1185
if (strpos($referrer['host'], 'www.') === 0)
line 1202
if ($referrer['host'] == $valid['host'] && preg_match('%^'.preg_quote($valid['path'], '%').'/(.*?)\.php%i', $referrer['path']))