Member
Member
fatman   2009-11-28, 20:38
#1

I have just test on 2009-11-27-trunk.zip with default theme.

My zenphoto installation is not at root path, it is "zenphoto", so the redirect URL in password form is
/zenphoto/index.php?userlog=1&album=xxxxxxx

However, the redirect in functions.php is
header("Location: " . FULLWEBPATH . "/" . sanitize_path($_POST['redirect']));

Then, the outcome is
http://mydomain.com/zenphoto//zenphoto/index.php?userlog=1&album=xxxxxxx

My temp solution is replace the FULLWEBPATH to "http://" . $_SERVER['HTTP_HOST']

Member
Member
sbillard   2009-11-28, 22:38
#2

Fix will be in the nightly tonight. Thanks for the report.

Member
Member
fatman   2009-12-04, 09:35
#3

I found that in 1.2.7 changed to

            $redirect_to = sanitize_path($_POST['redirect']);
            if (strpos($redirect_to,WEBPATH.'/')===0) {^M
                    $redirect_to = substr($redirect_to,strlen(WEBPATH)+1);
            }

but seem the sanitize_path() remove the first '/' of the path, the if case is false, so the redirect path still incorrect.

Member
Member
sbillard   2009-12-05, 01:22
#4

Ok, fixed in tonight's build

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.