diff --git a/src/forward.rs b/src/forward.rs index 9ccbe83..91277bc 100644 --- a/src/forward.rs +++ b/src/forward.rs @@ -31,7 +31,7 @@ pub async fn forward( // if check_route returns true, // the user supposedly tried to access a restricted page. // They get redirected to the main page. - if route == "/apps/files" { + if route.starts_with("/apps/files") { // exception for /apps/files: always redirect to /apps/forms debug(&format!("Files route blocked: {}", route)); return Ok(web_redir("/apps/forms").await.map_err(|e| { diff --git a/src/sniff.rs b/src/sniff.rs index d161712..9bbd614 100644 --- a/src/sniff.rs +++ b/src/sniff.rs @@ -76,7 +76,6 @@ const BLOCKED_ROUTES: &[&str] = &[ "/settings", "/ocs/v", "/remote.php", - "/apps/files", "/core/templates/filepicker.html", ];