1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-08-24 11:43:19 +00:00

Fixed some lint issues

This commit is contained in:
Daniel García 2018-09-13 21:55:23 +02:00
commit 8651df8c2a
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
11 changed files with 25 additions and 27 deletions

View file

@ -18,7 +18,7 @@ fn icon(domain: String) -> Content<Vec<u8>> {
let icon_type = ContentType::new("image", "x-icon");
// Validate the domain to avoid directory traversal attacks
if domain.contains("/") || domain.contains("..") {
if domain.contains('/') || domain.contains("..") {
return Content(icon_type, get_fallback_icon());
}