Fork me on GitHub
Subscribe 3

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']))

History

quy 2014-11-24 16:39:46

  • Milestone set to 1.5.8.

quy 2014-11-24 18:15:36

Franz: Please apply changes in master into 1.5-next so I can fix this. Thanks.

quy 2014-11-24 18:15:43

  • Owner set to quy.

Franz 2014-11-25 09:39:11

Done.

quy 2014-11-25 19:07:16

Commit d838c18 to fluxbb 1.5-next

#998: Fix undefined host in validate_redirect

Franz 2014-11-25 21:52:17

Commit ef804cc to fluxbb 1.5-next

Merge pull request #124 from Quy/998-redirect

#998: Fix undefined host in validate_redirect

quy 2014-11-25 21:53:40

  • Status changed from open to fixed.