The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
banned user can't log out
#8
OK, changes done. See here for Redirect.php

http://pastebin.com/yvSx71U1

These changes are as follows:
(1) allow arguments as an optional second argument:
Code:
Redirect::to('login.php', '?err=Error+Message');
(2) Fix problems with relative paths where sometimes the redirect is to users/script.php and other times it is to script.php and if you are not already set in the users directory it can cause problems
(3) clean up some tabbing so code aligns better and is more readable

I *believe* that with all 3 of these changes (Redirect.php, us_helpers.php, and login.php) the original bug is fixed along with the problem with the relative paths in Redirect.

Do note that in the long term it would be better if all Redirects use $us_url_root.'path/to/script.php' instead of just 'to/script.php'. This would remove the ambiguity that my fix is trying to solve...
  Reply


Messages In This Thread
banned user can't log out - by plb - 09-07-2016, 04:11 AM
banned user can't log out - by plb - 09-07-2016, 04:32 AM
banned user can't log out - by firestorm - 09-07-2016, 10:32 AM
banned user can't log out - by plb - 09-07-2016, 01:15 PM
banned user can't log out - by plb - 09-07-2016, 05:04 PM
banned user can't log out - by plb - 09-07-2016, 05:31 PM
banned user can't log out - by plb - 09-07-2016, 05:46 PM
banned user can't log out - by plb - 09-07-2016, 06:34 PM
banned user can't log out - by mudmin - 09-07-2016, 09:46 PM
banned user can't log out - by brian - 09-13-2016, 01:59 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)