diff options
author | Benjamin Trigona-Harany | 2017-08-19 16:16:19 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo | 2017-08-26 02:20:29 +0200 |
commit | 61329dad6903953a03efc925072fa8ab0a13cf30 (patch) | |
tree | 38c3ae579c267156871bbdc20febdd25dcc89b88 /network/newsbeuter/newsbeuter-2.9-security-fix.patch | |
parent | 8ac2bf7fb5b06e9eaa6ce6905accac983b1dbd61 (diff) | |
download | slackbuilds-61329dad6903953a03efc925072fa8ab0a13cf30.tar.gz |
network/newsbeuter: Apply security fix and support current.
Diffstat (limited to 'network/newsbeuter/newsbeuter-2.9-security-fix.patch')
-rw-r--r-- | network/newsbeuter/newsbeuter-2.9-security-fix.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/newsbeuter/newsbeuter-2.9-security-fix.patch b/network/newsbeuter/newsbeuter-2.9-security-fix.patch new file mode 100644 index 0000000000..f99cbf04c9 --- /dev/null +++ b/network/newsbeuter/newsbeuter-2.9-security-fix.patch @@ -0,0 +1,15 @@ +--- a/src/controller.cpp ++++ b/src/controller.cpp +@@ -1275,9 +1275,10 @@ std::string controller::bookmark(const std::string& url, const std::string& titl + std::string bookmark_cmd = cfg.get_configvalue("bookmark-cmd"); + bool is_interactive = cfg.get_configvalue_as_bool("bookmark-interactive"); + if (bookmark_cmd.length() > 0) { +- std::string cmdline = utils::strprintf("%s '%s' %s %s", ++ std::string cmdline = utils::strprintf("%s '%s' '%s' '%s'", + bookmark_cmd.c_str(), utils::replace_all(url,"'", "%27").c_str(), +- stfl::quote(title).c_str(), stfl::quote(description).c_str()); ++ utils::replace_all(title,"'", "%27").c_str(), ++ utils::replace_all(description,"'", "%27").c_str()); + + LOG(LOG_DEBUG, "controller::bookmark: cmd = %s", cmdline.c_str()); + |