You are not logged in.
Pages: 1
Topic closed
When you login after a failure to login the login-page pushes you to the default startpage, even when it should be redirecting. I have changed code to fix this but i don't know where I can post it. Can anyone tell me this?
Offline
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
I verified the bug in the bugtrack. But the bug isn't there in English.. Maybe in French but I can't read French so I don't know for sure.
The GLPI's I tested are 0.72.2 and the nightly build of 08-10-2009 (Yesterday). I made clean installs of these versions and tested it. It isn't implemented in theses GLPI versions so the platforms don't matter.
I still have the code to fix it. with diffs from the nightly build of 08-10-2009. Where can I submit this code?
Offline
First you do not give us all needed informations to debug.
submit the diff here. We will see.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
login.php
218,225d217
< // Redirect management
< $REDIRECT = "";
< if (isset ($_POST['redirect'])&&strlen($_POST['redirect'])>0){
< $REDIRECT = "?redirect=" .$_POST['redirect'];
< } else if (isset ($_GET['redirect'])&&strlen($_GET['redirect'])>0){
< $REDIRECT = "?redirect=" .$_GET['redirect'];
< }
<
234a227,234
> // Redirect management
> $REDIRECT = "";
> if (isset ($_POST['redirect'])&&strlen($_POST['redirect'])>0){
> $REDIRECT = "?redirect=" .$_POST['redirect'];
> } else if (isset ($_GET['redirect'])&&strlen($_GET['redirect'])>0){
> $REDIRECT = "?redirect=" .$_GET['redirect'];
> }
>
246,247c246,247
< // Logout whit noAUto to manage auto_login with errors
< echo '<b><a href="' . $CFG_GLPI["root_doc"] . '/logout.php?noAUTO=1'.str_replace("?","&",$REDIRECT).'">' . $LANG['login'][1] . '</a></b></div>';
---
> // Logout whit noAUto to manage auto_login with errors
> echo '<b><a href="' . $CFG_GLPI["root_doc"] . '/logout.php?noAUTO=1">' . $LANG['login'][1] . '</a></b></div>';
logout.php
54,64d53
< // Redirect management
< $REDIRECT = "";
< if (isset ($_POST['redirect'])&&strlen($_POST['redirect'])>0){
< $REDIRECT.= "redirect=" .$_POST['redirect'];
< } else if (isset ($_GET['redirect'])&&strlen($_GET['redirect'])>0){
< $REDIRECT.= "redirect=" .$_GET['redirect'];
< }
< if ($REDIRECT <> "") {
< $REDIRECT = ($noAUTO=="")?"?":"&";
< }
<
70c59
< glpi_header($CFG_GLPI["root_doc"]."/index.php".$noAUTO.$REDIRECT);
---
> glpi_header($CFG_GLPI["root_doc"]."/index.php".$noAUTO);
Offline
Thanks for the patch.
I integrate it. You could see ticket here : https://forge.indepnet.net/issues/show/1864
I close
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Pages: 1
Topic closed