mercurial/hgweb/hgweb_mod.py
changeset 22560 4109cc16279e
parent 22223 c39d404f0eb0
parent 22506 6e1fbcb18a75
child 22578 939ce500c92a
equal deleted inserted replaced
22559:4e0b696a1cb3 22560:4109cc16279e
   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]: