Skip to content

Commit

Permalink
python test page server shouldn't greedy match /page* for the 'number…
Browse files Browse the repository at this point in the history
…ed' dynamically generated pages
  • Loading branch information
lukeis committed Feb 10, 2016
1 parent 2d38be8 commit 569584a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/test/selenium/webdriver/common/webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def do_GET(self):
"""GET method handler."""
try:
path = self.path[1:].split('?')[0]
if path[:4] == "page":
if path[:4] == "page" and path[4] == '/':
html = """<html><head><title>Page{page_number}</title></head>
<body>Page number <span id=\"pageNumber\">{page_number}</span>
<p><a href=\"../xhtmlTest.html\" target=\"_top\">top</a>
Expand Down

0 comments on commit 569584a

Please sign in to comment.