diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index 5d6db79c0..3f5231120 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -48,7 +48,7 @@ def auth_desired(f): v = get_logged_in_user() if request.host == 'old.rdrama.net' and not (v and v.admin_level) and '/log' not in request.path: - return redirect(request.full_path.replace('https://old.','https://')) + return redirect(request.full_path.replace('old.','')) check_ban_evade(v) resp = make_response(f(*args, v=v, **kwargs)) @@ -67,7 +67,7 @@ def auth_required(f): if not v: abort(401) if request.host == 'old.rdrama.net' and not v.admin_level: - return redirect(request.full_path.replace('https://old.','https://')) + return redirect(request.full_path.replace('old.','')) check_ban_evade(v) @@ -89,7 +89,7 @@ def is_not_banned(f): if not v: abort(401) if request.host == 'old.rdrama.net' and not v.admin_level: - return redirect(request.full_path.replace('https://old.','https://')) + return redirect(request.full_path.replace('old.','')) check_ban_evade(v) if v.is_suspended: return {"error": "You can't perform this action while being banned."}, 403