diff options
author | 2017-08-27 22:37:02 +0300 | |
---|---|---|
committer | 2017-09-16 21:01:06 +0300 | |
commit | c8fea2f60c18ed30bdd1bb6f798e994e51a58260 (patch) | |
tree | 3202d47e820603ec4cc5921b61ecef5ea9389eec /src/pb_controller.cpp | |
parent | 1bc93b8d12a48279a11d8ee3613d31cc04e55ed5 (diff) | |
download | newsboat-c8fea2f60c18ed30bdd1bb6f798e994e51a58260.tar.gz newsboat-c8fea2f60c18ed30bdd1bb6f798e994e51a58260.tar.zst newsboat-c8fea2f60c18ed30bdd1bb6f798e994e51a58260.zip |
Work around shell code in podcast names (#598)
Diffstat (limited to '')
-rw-r--r-- | src/pb_controller.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pb_controller.cpp b/src/pb_controller.cpp index e46594f3..a6581f5e 100644 --- a/src/pb_controller.cpp +++ b/src/pb_controller.cpp @@ -367,9 +367,9 @@ void pb_controller::play_file(const std::string& file) { if (player == "") return; cmdline.append(player); - cmdline.append(" \""); - cmdline.append(utils::replace_all(file,"\"", "\\\"")); - cmdline.append("\""); + cmdline.append(" '"); + cmdline.append(utils::replace_all(file,"'", "%27")); + cmdline.append("'"); stfl::reset(); utils::run_interactively(cmdline, "pb_controller::play_file"); } |