summaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn b/doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn
index 83093895b..b1053fc38 100644
--- a/doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn
+++ b/doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn
@@ -55,3 +55,6 @@ I believed (until I tested) that the [[ikiwiki/directive/if]] directive, with th
"""]]
However this doesn't work. I assume "included" in this context means e.g. via an `inline` or `map`, not template trans-clusion. -- [[Jon]]
+
+> As far as I know, this bug was fixed in
+> 4a75dee651390b79ce4ceb1d951b02e28b3ce83a on October 20th. [[done]] --[[Joey]]
ot;;
  • {
  • int u=getuid();
  • EOF
  • $ret.="\t\tif ( ".
  • join("&&", map {
  • my $uid=getpwnam($_);
  • if (! defined $uid) {
  • error(sprintf(gettext("cannot determine id of untrusted committer %s"), $_));
  • }
  • "u != $uid";
  • } @{$config{untrusted_committers}}).
  • ") exit(0);\n";
  • $ret.=<<"EOF";
  • asprintf(&s, "CALLER_UID=%i", u);
  • newenviron[i++]=s;
  • }
  • EOF
  • return $ret;
  • }
  • sub test () {
  • exit 0 if trusted();
  • IkiWiki::lockwiki();
  • IkiWiki::loadindex();
  • # Dummy up a cgi environment to use when calling check_canedit
  • # and friends.
  • eval q{use CGI};
  • error($@) if $@;
  • my $cgi=CGI->new;
  • $ENV{REMOTE_ADDR}='unknown' unless exists $ENV{REMOTE_ADDR};
  • # And dummy up a session object.
  • require IkiWiki::CGI;
  • my $session=IkiWiki::cgi_getsession($cgi);
  • $session->param("name", getuser());
  • # Make sure whatever user was authed is in the
  • # userinfo db.
  • require IkiWiki::UserInfo;
  • if (! IkiWiki::userinfo_get($session->param("name"), "regdate")) {
  • IkiWiki::userinfo_setall($session->param("name"), {
  • email => "",
  • password => "",
  • regdate => time,
  • }) || error("failed adding user");
  • }
  • my %newfiles;
  • foreach my $change (IkiWiki::rcs_receive()) {
  • # This untaint is safe because we check file_pruned and
  • # wiki_file_regexp.
  • my ($file)=$change->{file}=~/$config{wiki_file_regexp}/;
  • $file=IkiWiki::possibly_foolish_untaint($file);
  • if (! defined $file || ! length $file ||
  • IkiWiki::file_pruned($file, $config{srcdir})) {
  • error(gettext("bad file name %s"), $file);
  • }
  • my $type=pagetype($file);
  • my $page=pagename($file) if defined $type;
  • if ($change->{action} eq 'add') {
  • $newfiles{$file}=1;
  • }
  • if ($change->{action} eq 'change' ||
  • $change->{action} eq 'add') {