Reject additional path segments

This commit is contained in:
Daniel Wagner-Hall 2016-02-08 10:50:55 +00:00
parent 77c7ed0e93
commit 1d19a5ec0f
3 changed files with 6 additions and 6 deletions

View file

@ -26,7 +26,7 @@ logger = logging.getLogger(__name__)
class WhoisRestServlet(ClientV1RestServlet):
PATTERNS = client_path_patterns("/admin/whois/(?P<user_id>[^/]*)")
PATTERNS = client_path_patterns("/admin/whois/(?P<user_id>[^/]*)$")
@defer.inlineCallbacks
def on_GET(self, request, user_id):