mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-10 07:38:10 -05:00
Correctly escape username pattern regex
Without the escaping, the backslash doesn't get renderet in the frontend which leads to some browsers (chrome >= 114?) just allowing every input.
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
placeholder: t("registrations.new.username"),
|
||||
title: t("registrations.new.enter_username"),
|
||||
required: true,
|
||||
pattern: "[A-Za-z0-9_.\-]+",
|
||||
pattern: "[A-Za-z0-9_.\\-]+",
|
||||
aria: {labelledby: "usernameLabel"}
|
||||
|
||||
- if mobile
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
placeholder: t("registrations.new.username"),
|
||||
class: "input-block-level form-control",
|
||||
required: true,
|
||||
pattern: "[A-Za-z0-9_.@\-]+",
|
||||
pattern: "[A-Za-z0-9_.@\\-]+",
|
||||
autocapitalize: "none",
|
||||
autocorrect: "off",
|
||||
autofocus: true,
|
||||
|
||||
Reference in New Issue
Block a user