summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/getsource.pm
AgeCommit message (Collapse)Author
2011-01-05use cgitemplate, remove misctemplateJoey Hess
2010-02-12add section informationJoey Hess
2009-12-14404/goto: Fix 404 display of utf-8 pages.Joey Hess
Problem here was that no charset http header was being sent. I fixed this globally by making cgi_custom_failure send the header. Required changing its parameters.
2009-08-08verify page name is saneJoey Hess
paranoia; I was thinking about XSS attacks specificaly
2009-08-08fix misleading commentJoey Hess
2009-07-27getsource: remove temporary variableSimon McVittie
2009-07-26getsource: remove unnecessary IkiWiki:: prefixesSimon McVittie
Many variables and functions are exported.
2009-07-26getsource: don't allow getting the source of an attachmentSimon McVittie
Serving up images etc. as text/plain; charset=utf-8 is unlikely to work very well, and there's no point in having this CGI action for attachments (since they're copied into the output as-is anyway).
2009-07-26getsource: turn missing pages into a 404Simon McVittie
Also restructure so we return early on missing pages.
2009-07-26getsource: default to saying page source is in UTF-8, and make the example ↵Simon McVittie
match the default IkiWiki mostly assumes that pages are in UTF-8; anyone this doesn't work for can override it in the setup file.
2009-07-26getsource: run as plain CGI, rather than sessioncgiSimon McVittie
As I suggested when reviewing Will's code, calling loadindex() should be sufficient.
2009-07-26Add getsource pluginWill Uther