From 8532731f19a5a568e48f842981fd05296d895e9b Mon Sep 17 00:00:00 2001 From: Nyo Date: Sat, 10 Dec 2016 19:30:38 +0100 Subject: [PATCH] .BANCHO. .FIX. Run safeUsername on /api/v1/isOnline --- handlers/apiIsOnlineHandler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/handlers/apiIsOnlineHandler.py b/handlers/apiIsOnlineHandler.py index 8e42964..d6ce1cf 100644 --- a/handlers/apiIsOnlineHandler.py +++ b/handlers/apiIsOnlineHandler.py @@ -1,5 +1,6 @@ import json +from common.ripple import userUtils from common.web import requestsManager from constants import exceptions from objects import glob @@ -18,7 +19,8 @@ class handler(requestsManager.asyncRequestHandler): username = None userID = None if "u" in self.request.arguments: - username = self.get_argument("u").lower().replace(" ", "_") + #username = self.get_argument("u").lower().replace(" ", "_") + username = userUtils.safeUsername(self.get_argument("u")) else: try: userID = int(self.get_argument("id"))