This commit is contained in:
2026-08-29 15:15:28 +01:00
parent 98dbb3d36d
commit c4a7e622b7
10 changed files with 99 additions and 56 deletions
+3 -1
View File
@@ -13,7 +13,9 @@ use axum_extra::extract::{CookieJar, cookie::Cookie};
/// dashes and apostrophes — no spaces. Mirrors the frontend
/// `/^[A-Za-z0-9'-]{0,67}$/` used by the keys-page popups.
fn valid_charset(s: &str) -> bool {
s.len() <= 67 && s.chars().all(|c| c.is_ascii_alphanumeric() || c == '-' || c == '\'')
s.len() <= 67
&& s.chars()
.all(|c| c.is_ascii_alphanumeric() || c == '-' || c == '\'')
}
use axum::{