diff options
author | W. Trevor King <wking@drexel.edu> | 2009-11-21 15:18:02 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-11-21 15:18:02 -0500 |
commit | 614d4e40e148520ac511cbe0606bcbdcf24c8a08 (patch) | |
tree | 84742af3feb5cb65b4bba6ce9a5d9854060f569b /README.dev | |
parent | bb8dd5066f730f9bb0ac0398bf9a167e9736a808 (diff) | |
download | bugseverywhere-614d4e40e148520ac511cbe0606bcbdcf24c8a08.tar.gz |
Added restrict_file_access to becommands' execute() args.
+ associated adjustments in other files.
See cmdutil.restrict_file_access.__doc__ for an explanation of the
security hole this closes.
Diffstat (limited to 'README.dev')
-rw-r--r-- | README.dev | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -10,11 +10,19 @@ To fit into the current framework, your extension module should provide the following elements: __desc__ A short string describing the purpose of your plugin - execute(args) + execute(args, manipulate_encodings=True, restrict_file_access=False) The entry function for your plugin. args is everything from sys.argv after the name of your plugin (e.g. for the command `be open abc', args=['abc']). + manipulate_encodings should be passed through to any calls to + bugdir.BugDir(). See the BugDir documentation for details. + + If restrict_file_access==True, you should call + cmdutil.restrict_file_access(bugdir, path) + before attempting to read or write a file. See the + restrict_file_access documentation for details. + Note: be supports command-completion. To avoid raising errors you need to deal with possible '--complete' options and arguments. See the 'Command completion' section below for more information. |