equal
deleted
inserted
replaced
198 cmd = cmd[style + 1:] |
198 cmd = cmd[style + 1:] |
199 |
199 |
200 # avoid accepting e.g. style parameter as command |
200 # avoid accepting e.g. style parameter as command |
201 if util.safehasattr(webcommands, cmd): |
201 if util.safehasattr(webcommands, cmd): |
202 req.form['cmd'] = [cmd] |
202 req.form['cmd'] = [cmd] |
203 else: |
|
204 cmd = '' |
|
205 |
203 |
206 if cmd == 'static': |
204 if cmd == 'static': |
207 req.form['file'] = ['/'.join(args)] |
205 req.form['file'] = ['/'.join(args)] |
208 else: |
206 else: |
209 if args and args[0]: |
207 if args and args[0]: |