use a char instead of string literal

This commit is contained in:
Dashon Wells 2023-08-02 11:13:39 -05:00
parent 305bae922f
commit 77e94499a0

View File

@ -267,7 +267,7 @@ fn wget_footer(abs_path: &Uri, root_dir_name: Option<&str>, current_user: Option
None => String::new(),
};
let encoded_abs_path = abs_path.to_string().replace("'", "%27");
let encoded_abs_path = abs_path.to_string().replace('\'', "%27");
let command = format!(
"wget -rcnHp -R 'index.html*'{cut_dirs}{user_params} '{encoded_abs_path}?raw=true'"
);