move sanitize to new security module that we're gonna extend for security hardening

This commit is contained in:
mykola2312 2024-03-31 14:53:38 +03:00
parent b0afa21511
commit 62bbaa5dab
3 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,6 @@ pub mod notify;
pub mod op;
pub mod request;
pub mod request_chat;
pub mod sanitize;
pub mod start;
pub mod types;
pub mod version;

1
src/security.rs Normal file
View file

@ -0,0 +1 @@
pub mod sanitize;

View file

@ -19,7 +19,7 @@ pub fn parse_url(url: &str) -> Option<Url> {
#[cfg(test)]
mod tests {
use crate::bot::sanitize::{extract_url, parse_url};
use crate::security::sanitize::{extract_url, parse_url};
#[test]
fn test_extract_url() {