mirror of
https://github.com/svenstaro/miniserve
synced 2024-07-03 08:08:47 +00:00
use a char instead of string literal
This commit is contained in:
parent
305bae922f
commit
77e94499a0
|
@ -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'"
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user