Tue Aug 23 22:20:18 UTC 2005 Alberto Bertogli * Allow underscores in action names. diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi --- old-darcsweb/darcsweb.cgi 2015-04-18 08:11:13.000000000 +0000 +++ new-darcsweb/darcsweb.cgi 2015-04-18 08:11:14.000000000 +0000 @@ -34,9 +34,9 @@ return string.join(l, "") -allowed_alphanum = string.ascii_letters + string.digits -def filter_an(s): - l = [c for c in s if c in allowed_alphanum] +allowed_in_action = string.ascii_letters + string.digits + '_' +def filter_act(s): + l = [c for c in s if c in allowed_in_action] return string.join(l, "") @@ -1262,7 +1262,7 @@ if not form.has_key("a"): action = "summary" else: - action = filter_an(form["a"].value) + action = filter_act(form["a"].value) # see what should we do according to the received action