Skip to content

Commit

Permalink
Fix another XSS bug, in /buildslaves/.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas17 authored and Dustin J. Mitchell committed Aug 13, 2009
1 parent 23c81ce commit 5642507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buildbot/status/web/slaves.py
Expand Up @@ -77,7 +77,7 @@ def body(self, req):

data.append("<a href=\"%s\">%s</a>\n" % (self.path_to_root(req), projectName))

data.append("<h1>Build Slave: %s</h1>\n" % self.slavename)
data.append("<h1>Build Slave: %s</h1>\n" % html.escape(self.slavename))

shutdown_url = req.childLink("shutdown")

Expand Down Expand Up @@ -213,4 +213,4 @@ def getChild(self, path, req):
slave = self.getStatus(req).getSlave(path)
return OneBuildSlaveResource(path)
except KeyError:
return NoResource("No such slave '%s'" % path)
return NoResource("No such slave '%s'" % html.escape(path))

0 comments on commit 5642507

Please sign in to comment.