diff options
-rw-r--r-- | src/renderer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs index 5f1677f..028925b 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -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'" ); |