Skip to content

Commit

Permalink
Allow + and ~ characters in branch names when forcing a build via web…
Browse files Browse the repository at this point in the history
…status.
  • Loading branch information
Amber Yust committed Oct 3, 2010
1 parent 12bdb10 commit a050670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/status/web/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def force(self, req, auth_ok=False):

# keep weird stuff out of the branch revision, and property strings.
# TODO: centralize this somewhere.
if not re.match(r'^[\w\.\-\/]*$', branch):
if not re.match(r'^[\w.+/~-]*$', branch):
log.msg("bad branch '%s'" % branch)
return Redirect(path_to_builder(req, self.builder_status))
if not re.match(r'^[ \w\.\-\/]*$', revision):
Expand Down

0 comments on commit a050670

Please sign in to comment.