X-Git-Url: http://git.scottworley.com/voter/blobdiff_plain/dd0a124698a0ded987f7b5b426607308b0e79ffc..ae9be1b6ecd0c0823129bf6bb41149bd9404e902:/src/main.rs?ds=sidebyside diff --git a/src/main.rs b/src/main.rs index 273a719..9d8daa5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,7 +4,7 @@ use std::path::{Path, PathBuf}; const DATA_PATH: &str = "/var/lib/voter"; const COOKIE_NAME: &[u8] = b"__Secure-id"; -const COOKIE_LENGTH: usize = 32; +const COOKIE_LENGTH: usize = 12; fn validate_path(path: &str) -> Result { let invalid_path = || cgi::text_response(404, "Invalid path");