Jump to content

FORGOT PASS - redirect problem when re-logging in.


Guest pauly_43

Recommended Posts

Guest pauly_43

Hello all,

here is the bug. i am running cc. v3.0.10. i am testing the "forgot password" function. when selected, it sends the email just fine with a new temp. pass. when i click on the link in the email it takes me to this location:

http://centraldelhogar.com/index.php?act=login

and when i enter the new temp. pass. it then goes to this page and hangs

http://centraldelhogar.com/index.php?act=login&redir=

it just hangs there. i have looked at the login.inc.php file at this piece of code:

----------------------------------------

// redirect

//"login","reg","unsubscribe","forgotPass"

if( isset($_GET['redir']) && !eregi("logout|login|forgotPass|changePass",base64_decode($_GET['redir']))){

$_GET['redir'] = treatGet($_GET['redir']);

header("Location: ".str_replace("&","&",base64_decode(treatGet($_GET['redir']))));

exit;

} else {

header("Location: ".$GLOBALS['rootRel']."index.php");

exit;

}

------------------------------------------

i am not an expert with php but from what i can tell it seems to be right. when i add the extra "index.php" on to the end of the hanging url it goes

ex:

http://centraldelhogar.com/index.php?act=login&redir=

+

index.php

then it goes and logs me in.

Please, any ideas on this? i hope it is just an easy fix. any and all suggestions appreciated.

cheers!!!

paul

Link to comment
Share on other sites

You have got the point! You are absolutely right this is a bug.

The code you have mentioned:

if( isset($_GET['redir']) && !eregi("logout|login|forgotPass|changePass",base64_decode($_GET['redir']))){




Have to be:




if(isset($_GET['redir']) && !empty($_GET['redir']) && !eregi("logout|login|forgotPass|changePass",base64_decode($_GET['redir']))){

PM has been sent to Al.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...