use ruma-identifiers-validation feature from our ruma
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
ce0ca96df4
commit
30ad5da5f1
4 changed files with 17 additions and 21 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue