Go to file
Joey Hess 034b4e8266 remove verify_src_file
Splitting out this function bothered me. It is conceptially similar to
file_pruned, and yet also very specific to exactly the security needs of
find_src_files.

I liked that it got rid of duplicate code in the latter function. So
instead, put a helper sub in that, which I think allows refactoring
things more cleanly, and with less boilerplate.

As to the needs of gen_autofile, I'm not convinced this needs to handle
the same set of problems that verify_src_file did. So I sat down and
wrote a custom validator for autofiles, which turned out to seem to just
need three things: Make sure the candidate filename is not something
that would be pruned; untaint the candidate filename; and make sure that
srcdir doesn't already have something with its name. (Plus, of course,
all the other checks that were already in gen_autofile.)

(In passing, also fixed a bunch of bugs I had introduced in this branch.)
2010-04-21 15:05:59 -04:00
Bundle add YAML suggests 2010-03-24 14:30:54 -04:00
IkiWiki remove verify_src_file 2010-04-21 15:05:59 -04:00
cpan enhancesments for shared hosting 2008-05-05 14:51:26 -04:00
debian bzr: changelog and refactor 2010-04-17 13:55:38 -04:00
doc add_autofile filename should be relative to srcdir 2010-04-21 14:37:03 -04:00
plugins format plugin categorization 2010-02-12 01:10:36 -05:00
po releasing version 3.20100403 2010-04-03 15:15:04 -04:00
t remove 2 argument form of file_pruned 2010-04-20 14:08:29 -04:00
templates Merge remote branch 'davrieb/autotag' into autotag 2010-04-17 12:50:23 -04:00
underlays fix file, should be symlink 2010-04-16 18:11:30 -04:00
.gitignore Add preprocessed 'use lib' line to ikiwiki-transition and ikiwiki-calendar if necessary for unusual install. 2010-03-26 13:11:02 -04:00
.perlcriticrc fix a common case typo 2008-08-12 15:48:44 -04:00
CHANGELOG * Work on firming up the plugin interface: 2006-09-09 22:50:27 +00:00
IkiWiki.pm Merge branch 'master' into autotag 2010-04-21 14:21:40 -04:00
Makefile.PL fix buggy program installation code 2010-04-03 15:09:04 -04:00
NEWS * Work on firming up the plugin interface: 2006-09-09 22:50:27 +00:00
README response 2010-03-28 18:49:15 -04:00
auto-blog.setup disable global sidebars by default 2010-04-15 17:32:11 -04:00
auto.setup fix case 2009-10-21 13:55:44 -04:00
docwiki.setup automatically run --gettime, and optimise it for git 2010-04-16 18:30:56 -04:00
gitremotes drop remote pulling; can be done using git remote update --prune 2009-12-07 14:44:50 -05:00
ikiwiki-calendar.in fix parameter parsing when pagespec is ommited, and year is present 2010-04-15 18:51:35 -04:00
ikiwiki-makerepo reorder vcs list 2009-09-10 16:22:58 -04:00
ikiwiki-mass-rebuild fix two build bugs 2008-06-13 13:05:44 -04:00
ikiwiki-transition.in Add preprocessed 'use lib' line to ikiwiki-transition and ikiwiki-calendar if necessary for unusual install. 2010-03-26 13:11:02 -04:00
ikiwiki-update-wikilist add new wiki to wikilist 2008-07-27 16:01:29 -04:00
ikiwiki-w3m.cgi * Support a w3mmode, which lets w3m run ikiwiki using its local CGI 2006-07-07 21:00:48 +00:00
ikiwiki.in automatically run --gettime, and optimise it for git 2010-04-16 18:30:56 -04:00
ikiwiki.spec releasing version 3.20100403 2010-04-03 15:15:04 -04:00
mdwn2man fix escaping of indented dot 2010-03-12 15:09:33 -05:00
pm_filter remove -T from ikiwiki.in, add back if NOTAINT=0 2009-05-22 13:46:07 -04:00
wikilist Fix typo. 2007-04-09 23:54:32 +00:00

README

Use ./Makefile.PL to generate a Makefile, "make" will build the
documentation wiki and a man page, and "make install" will install ikiwiki.

All other documentation is in the ikiwiki documentation wiki, which is also
available online at <http://ikiwiki.info/>


A few special variables you can set while using the Makefile.PL:

  PROFILE=1 turns on profiling for the build of the doc wiki.
  (Uses Devel::NYTProf)

  NOTAINT=0 turns on the taint flag in the ikiwiki program. (Not recommended
  unless your perl is less buggy than mine -- see
  http://bugs.debian.org/411786)

  There are also other variables supported by MakeMaker, including PREFIX,
  INSTALL_BASE, and DESTDIR. See ExtUtils::MakeMaker(3).

  In particular, INSTALL_BASE is very useful if you want to install ikiwiki
  to some other location, as it configures it to see the perl libraries
  there. See `doc/tips/nearlyfreespeech.mdwn` for an example of using this to
  install ikiwiki and its dependencies in a home directory.