1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-01-31 07:42:51 -05:00

Add username validation

Fixes #1317
This commit is contained in:
Zed
2025-11-30 04:12:38 +01:00
parent a62ec9cbb4
commit 7734d976f7
2 changed files with 21 additions and 1 deletions

View File

@@ -114,6 +114,7 @@ proc createTimelineRouter*(cfg: Config) =
get "/@name/?@tab?/?":
cond '.' notin @"name"
cond @"name" notin ["pic", "gif", "video", "search", "settings", "login", "intent", "i"]
cond @"name".allCharsInSet({'a'..'z', 'A'..'Z', '0'..'9', '_'})
cond @"tab" in ["with_replies", "media", "search", ""]
let
prefs = cookiePrefs()