? Success

User tests: Successful: Unsuccessful:

avatar demis-palma
demis-palma
1 Jul 2016

PHP Notice: Undefined variable: data in [...]/components/com_users/controllers/user.php on line 207.

Testing Instructions

  1. Login into the front-end using the component, or the module as you prefer.
    URL if you want to use the component:
    http://localhost/index.php?option=com_users&view=login

  2. Logout by the front-end using the component, or the module as you prefer.
    If you want to use the component again, call the URL:
    http://localhost/index.php?option=com_users&view=login and press "logout".

  3. Check the error log of your web-server for the PHP notice mentioned above.

Summary of Changes

The variable $data does not exist. The piece of code that refers to $data has been clearly copied and pasted by the login() method about 120 lines above, but the context of logout() method is slightly different, and does not provide the variable $data as the login() actually does.

Rewritten the related code accordingly.

avatar demis-palma demis-palma - open - 1 Jul 2016
avatar demis-palma demis-palma - change - 1 Jul 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jul 2016
Labels Added: ?
avatar demis-palma demis-palma - change - 1 Jul 2016
The description was changed
avatar demis-palma
demis-palma - comment - 1 Jul 2016

Another side effect solved by this patch, is that the check that prevents from using external return URLs did not work, of course, as it relied on a variable that didn't exist ($data).

Now the check that prevents from using external return URLs has been restored.

avatar brianteeman brianteeman - change - 1 Jul 2016
The description was changed
avatar brianteeman brianteeman - change - 1 Jul 2016
Category Authentication
avatar brianteeman brianteeman - change - 1 Jul 2016
The description was changed
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jul 2016
Labels Added: ?
avatar brianteeman brianteeman - test_item - 1 Jul 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 1 Jul 2016

I have tested this item successfully on 0112da7

Confirmed issue and confirmed fix


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10985.

avatar andrepereiradasilva andrepereiradasilva - test_item - 2 Jul 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 2 Jul 2016

I have tested this item successfully on 0112da7

works as described.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10985.

avatar brianteeman brianteeman - change - 2 Jul 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 2 Jul 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10985.

avatar joomla-cms-bot joomla-cms-bot - change - 2 Jul 2016
Labels Added: ?
avatar infograf768
infograf768 - comment - 2 Jul 2016

I guess this has to go into 3.6.0 next RC

avatar brianteeman brianteeman - change - 2 Jul 2016
Milestone Added:
avatar zero-24
zero-24 - comment - 2 Jul 2016

@wilsonge FYI ;)

avatar wilsonge wilsonge - change - 3 Jul 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-07-03 13:43:36
Closed_By wilsonge
avatar wilsonge wilsonge - close - 3 Jul 2016
avatar wilsonge wilsonge - merge - 3 Jul 2016
avatar joomla-cms-bot joomla-cms-bot - close - 3 Jul 2016
avatar wilsonge wilsonge - reference | 769cef9 - 3 Jul 16
avatar wilsonge wilsonge - merge - 3 Jul 2016
avatar wilsonge wilsonge - close - 3 Jul 2016
avatar joomla-cms-bot joomla-cms-bot - change - 3 Jul 2016
Labels Removed: ?
avatar wilsonge wilsonge - reference | 9c51d7d - 4 Jul 16
avatar infograf768
infograf768 - comment - 13 Jul 2016

This has tottaly broken logout redirection... I should have tested...

avatar infograf768
infograf768 - comment - 13 Jul 2016

Please test
#11093

Add a Comment

Login with GitHub to post a comment