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=xxxxxxxMy temp solution is replace the FULLWEBPATH to "http://" . $_SERVER['HTTP_HOST']
Comments
$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.