diff options
author | 2017-08-27 22:37:02 +0300 | |
---|---|---|
committer | 2017-09-16 21:01:06 +0300 | |
commit | c8fea2f60c18ed30bdd1bb6f798e994e51a58260 (patch) | |
tree | 3202d47e820603ec4cc5921b61ecef5ea9389eec /src/queueloader.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/queueloader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/queueloader.cpp b/src/queueloader.cpp index 15047b6e..980f185d 100644 --- a/src/queueloader.cpp +++ b/src/queueloader.cpp @@ -130,7 +130,7 @@ std::string queueloader::get_filename(const std::string& str) { strftime(lbuf, sizeof(lbuf), "%Y-%b-%d-%H%M%S.unknown", localtime(&t)); fn.append(lbuf); } else { - fn.append(base); + fn.append(utils::replace_all(base, "'", "%27")); } return fn; } |