mercurial/hgweb/hgweb_mod.py
branchstable
changeset 22506 6e1fbcb18a75
parent 22087 af62f0280a76
child 22560 4109cc16279e
child 22577 a111e460318a
equal deleted inserted replaced
22505:232d437af120 22506:6e1fbcb18a75
   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]: