summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1d1ef20)
This got broken when cgiurl began often returning a relative url.
Added a cgiurl_abs for the things that need a guaranteed absolute cgiurl.
join("&", map $_."=".uri_escape_utf8($params{$_}), keys %params);
}
join("&", map $_."=".uri_escape_utf8($params{$_}), keys %params);
}
+sub cgiurl_abs (@) {
+ eval q{use URI};
+ URI->new_abs(cgiurl(@_), $config{cgiurl});
+}
+
sub baseurl (;$) {
my $page=shift;
sub baseurl (;$) {
my $page=shift;
$template->param(
wikiname => $config{wikiname},
url => $url,
$template->param(
wikiname => $config{wikiname},
url => $url,
- prefsurl => $config{cgiurl}."?do=prefs",
+ prefsurl => IkiWiki::cgiurl_abs(do => 'prefs'),
showcontent => $showcontent,
content => $content,
);
showcontent => $showcontent,
content => $content,
);
my $template=template("passwordmail.tmpl");
$template->param(
user_name => $user_name,
my $template=template("passwordmail.tmpl");
$template->param(
user_name => $user_name,
- passwordurl => IkiWiki::cgiurl(
+ passwordurl => IkiWiki::cgiurl_abs(
'do' => "reset",
'name' => $user_name,
'token' => $token,
'do' => "reset",
'name' => $user_name,
'token' => $token,
the old hook name is called for now for back-compat.
* meta: Support keywords header. Closes: #664780
Thanks, Martin Michlmayr
the old hook name is called for now for back-compat.
* meta: Support keywords header. Closes: #664780
Thanks, Martin Michlmayr
+ * passwordauth: Fix url in password recovery email to be absolute.
-- Joey Hess <joeyh@debian.org> Wed, 21 Mar 2012 14:33:14 -0400
-- Joey Hess <joeyh@debian.org> Wed, 21 Mar 2012 14:33:14 -0400