diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-04-04 18:43:26 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-04-04 18:43:26 +0000 |
commit | 46302e698d97d9bf52fabac4858d954cb650bfb8 (patch) | |
tree | c55803bf52d2c3ab97428d4eca99bf1dce5230ce | |
parent | dd9ec3f5b63cd85d307968977cec2d2a245e640b (diff) | |
download | ikiwiki-46302e698d97d9bf52fabac4858d954cb650bfb8.tar ikiwiki-46302e698d97d9bf52fabac4858d954cb650bfb8.tar.gz |
Verified that the action parameter on cgi forms is needed for at least the
prefs form. Use $config{cgiurl}.
-rw-r--r-- | IkiWiki/CGI.pm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index fa2287e82..ac5365b2f 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -63,8 +63,7 @@ sub cgi_signin ($$) { #{{{ required => 'NONE', javascript => 0, params => $q, - # Why was this added? - #action => $q->request_uri, + action => $config{cgiurl}, header => 0, template => (-e "$config{templatedir}/signin.tmpl" ? "$config{templatedir}/signin.tmpl" : ""), @@ -230,7 +229,7 @@ sub cgi_prefs ($$) { #{{{ required => 'NONE', javascript => 0, params => $q, - action => $q->request_uri, + action => $config{cgiurl}, template => (-e "$config{templatedir}/prefs.tmpl" ? "$config{templatedir}/prefs.tmpl" : ""), stylesheet => styleurl(), @@ -294,7 +293,7 @@ sub cgi_editpage ($$) { #{{{ required => [qw{content}], javascript => 0, params => $q, - action => $q->request_uri, + action => $config{cgiurl}, table => 0, template => "$config{templatedir}/editpage.tmpl" ); |