diff options
author | Evan Martin <martine@danga.com> | 2013-02-24 20:51:38 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2013-02-24 20:51:38 (GMT) |
commit | a010af66eb621b6a26b99ac46cad78f460802713 (patch) | |
tree | 906e3aad2a740bd4b9e2d92f7ac8914096deb8ab /src | |
parent | 45e7d32e4c07aa198392235db8d2c1658dd4e4d9 (diff) | |
parent | b7f11b3b495cb3d5964f9028dd3ea2c977565e65 (diff) | |
download | Ninja-a010af66eb621b6a26b99ac46cad78f460802713.zip Ninja-a010af66eb621b6a26b99ac46cad78f460802713.tar.gz Ninja-a010af66eb621b6a26b99ac46cad78f460802713.tar.bz2 |
Merge pull request #507 from ikarienator/master
Browse command does not parse URL correctly
Diffstat (limited to 'src')
-rwxr-xr-x | src/browse.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/browse.py b/src/browse.py index 7f15e50..652bac2 100755 --- a/src/browse.py +++ b/src/browse.py @@ -29,6 +29,7 @@ except ImportError: import subprocess import sys import webbrowser +import urllib2 from collections import namedtuple Node = namedtuple('Node', ['inputs', 'rule', 'target', 'outputs']) @@ -151,7 +152,7 @@ def ninja_dump(target): class RequestHandler(httpserver.BaseHTTPRequestHandler): def do_GET(self): assert self.path[0] == '/' - target = self.path[1:] + target = urllib2.unquote(self.path[1:]) if target == '': self.send_response(302) |