use ruma-identifiers-validation feature from our ruma
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -57,7 +57,6 @@ lru-cache.workspace = true
|
||||
rand.workspace = true
|
||||
regex.workspace = true
|
||||
reqwest.workspace = true
|
||||
ruma-identifiers-validation.workspace = true
|
||||
ruma.workspace = true
|
||||
rustyline-async.workspace = true
|
||||
rustyline-async.optional = true
|
||||
|
||||
@@ -252,7 +252,7 @@ async fn request_well_known(dest: &str) -> Result<Option<String>> {
|
||||
.as_str()
|
||||
.unwrap_or_default();
|
||||
|
||||
if ruma_identifiers_validation::server_name::validate(m_server).is_err() {
|
||||
if ruma::identifiers_validation::server_name::validate(m_server).is_err() {
|
||||
debug_error!("response content missing or invalid");
|
||||
return Ok(None);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user