]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/plugins/write.mdwn
add note about genwrapper code running before wrapper sanitizes environment
[ikiwiki.git] / doc / plugins / write.mdwn
index a921b9a0272098e191987c80066c6e7931cafa2e..bb80123423453c5d01a558569f48924e05fbba55 100644 (file)
@@ -595,7 +595,10 @@ describes the plugin as a whole. For example:
        hook(type => "genwrapper", id => "foo", call => \&genwrapper);
 
 This hook is used to inject C code (which it returns) into the `main`
-function of the ikiwiki wrapper when it is being generated.
+function of the ikiwiki wrapper when it is being generated. 
+
+The code runs before anything else -- in particular it runs before
+the suid wrapper has sanitized its environment.
 
 ## Exported variables