summaryrefslogtreecommitdiff
path: root/IkiWiki/Receive.pm
AgeCommit message (Collapse)Author
2010-10-08refactor check_canchange into IkiWiki libraryJoey Hess
2010-10-04remove debugging dumper codeJoey Hess
2010-10-04indentation and layoutJoey Hess
2010-10-01Complete rcs_preprevert and lightly test.Peter Gammie
2010-08-30revert check_canedit nosubs thingJoey Hess
Abstraction violation. I now think the problem should be treated as a bug in httpauth.
2010-08-30correct logic on error fallthroughJoey Hess
2010-08-30Receive: avoid hiding check_canedit error messagesJoey Hess
Avoid the generic "you are not allowed to change" message, and instead allow check_canedit to propigate out useful error messages. Went back to calling check_canedit in fatal mode, but added a parameter to avoid calling the troublesome subs that might cause a login attempt.
2010-08-30minor typoJoey Hess
2010-08-30add explicit check_canedit calls when checking canattach or canremoveJoey Hess
2010-08-30Avoid trying to log the user in when receiving anonymous pushes from git and ↵Joey Hess
a plugin like httpauth returns a login function. Just use check_canedit in nonfatal mode.
2010-08-30remove obsolete check to see if check_canedit is availableJoey Hess
The function moved from the editpage plugin into IkiWiki core some time ago.
2010-06-23stop using REMOTE_ADDRJoey Hess
Everywhere that REMOTE_ADDR was used, a session object is available, so instead use its remote_addr method. In IkiWiki::Receive, stop setting a dummy REMOTE_ADDR. Note that it's possible for a session cookie to be obtained using one IP address, and then used from another IP. In this case, the first IP will now be used. I think that should be ok.
2010-04-17unfinished file_prune revampJoey Hess
Many calls to file_prune were incorrectly calling it with 2 parameters. In cases where the filename being checked is relative to the srcdir, that is not needed. Made absolute filenames be pruned. (This won't work for the 2 parameter call style.)
2009-09-10Merge branch 'master' into cvsJoey Hess
2009-09-10clean up use of IkiWiki::ReceiveJoey Hess
Loading and use of IkiWiki::Receive can all be pushed into the git plugin, rather than scattered around. I had at first wanted to make a receive plugin and move it there, but a plugin was not a good fit; you don't want users to have to manually load it, and making the git plugin load the receive plugin at the right times would need more, and ugly code.
2009-09-10typoJoey Hess
2008-12-17Coding style change: Remove explcit vim folding markers.Joey Hess
2008-10-26move untrusted committer test into the wrapperJoey Hess
This saves around 1/4th second per trusted commit since ikiwiki doesn't need to start up.
2008-10-24the pre-receive wrapper needs to be suid after allJoey Hess
It needs to write to the user db.
2008-10-24can't lock wiki due to permissions (probably)Joey Hess
luckily, don't really need to here
2008-10-24include temp file for attachment change tooJoey Hess
2008-10-24really fix calls to check_can*Joey Hess
2008-10-23fix calls to check_*Joey Hess
These throw errors, do not have useful return codes.
2008-10-23check_canattach hooked upJoey Hess
2008-10-23more work on untrusted committersJoey Hess
Wired up check_canedit and check_canremove, still need to deal with check_canattach, and test.