equal
deleted
inserted
replaced
134 |
134 |
135 cmd = args.pop(0) |
135 cmd = args.pop(0) |
136 style = cmd.rfind('-') |
136 style = cmd.rfind('-') |
137 if style != -1: |
137 if style != -1: |
138 req.form['style'] = [cmd[:style]] |
138 req.form['style'] = [cmd[:style]] |
139 cmd = cmd[style+1:] |
139 cmd = cmd[style + 1:] |
140 |
140 |
141 # avoid accepting e.g. style parameter as command |
141 # avoid accepting e.g. style parameter as command |
142 if hasattr(webcommands, cmd): |
142 if hasattr(webcommands, cmd): |
143 req.form['cmd'] = [cmd] |
143 req.form['cmd'] = [cmd] |
144 else: |
144 else: |