.BANCHO. .FIX. Run safeUsername on /api/v1/isOnline
This commit is contained in:
parent
b836f77446
commit
8532731f19
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue
Block a user