diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-09-27 17:04:25 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-09-27 18:02:33 -0400 |
commit | 2ff3c8aee78114974b6930c18247f050d35f2012 (patch) | |
tree | 7d40386aca2c0b4e3d79bf10c19fc3a567b94af9 /IkiWiki.pm | |
parent | a5d3acd37cd52a5cf0045ae4d300a2ef13a07a6e (diff) | |
download | ikiwiki-2ff3c8aee78114974b6930c18247f050d35f2012.tar ikiwiki-2ff3c8aee78114974b6930c18247f050d35f2012.tar.gz |
editpage: Be more aggressive (and less buggy) about cleaning up temporary files rendered during page preview.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index e303c8f4f..9b7baa0ee 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -750,7 +750,7 @@ sub will_render ($$;$) { #{{{ # Important security check. if (-e "$config{destdir}/$dest" && ! $config{rebuild} && - ! grep { $_ eq $dest } (@{$renderedfiles{$page}}, @{$oldrenderedfiles{$page}})) { + ! grep { $_ eq $dest } (@{$renderedfiles{$page}}, @{$oldrenderedfiles{$page}}, @{$wikistate{editpage}{previews}})) { error("$config{destdir}/$dest independently created, not overwriting with version from $page"); } |