aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2017-09-17 03:12:25 +0800
committerarved <arved@FreeBSD.org>2017-09-17 03:12:25 +0800
commitdee33fababfcf09666b6dcec3ec42e1275c748f5 (patch)
tree5fb7659c056155d271c733f89e34037f5c108b54 /www
parent7eae2a8de2005cdb9fdfb52f2c2fe186fbca591b (diff)
downloadfreebsd-ports-gnome-dee33fababfcf09666b6dcec3ec42e1275c748f5.tar.gz
freebsd-ports-gnome-dee33fababfcf09666b6dcec3ec42e1275c748f5.tar.zst
freebsd-ports-gnome-dee33fababfcf09666b6dcec3ec42e1275c748f5.zip
Sanitize URLs in podbeuter too.
Reported by: tj <tj@mrsk.me> Obtained from: https://github.com/akrennmair/newsbeuter/issues/598
Diffstat (limited to 'www')
-rw-r--r--www/newsbeuter/Makefile2
-rw-r--r--www/newsbeuter/files/patch-598.diff26
2 files changed, 27 insertions, 1 deletions
diff --git a/www/newsbeuter/Makefile b/www/newsbeuter/Makefile
index 8d95ee1a133c..878009dd0fc4 100644
--- a/www/newsbeuter/Makefile
+++ b/www/newsbeuter/Makefile
@@ -3,7 +3,7 @@
PORTNAME= newsbeuter
PORTVERSION= 2.9
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= www
MASTER_SITES= https://newsbeuter.org/downloads/ \
http://newsbeuter.org/downloads/
diff --git a/www/newsbeuter/files/patch-598.diff b/www/newsbeuter/files/patch-598.diff
new file mode 100644
index 000000000000..b2af74b4ff1f
--- /dev/null
+++ b/www/newsbeuter/files/patch-598.diff
@@ -0,0 +1,26 @@
+--- src/pb_controller.cpp
++++ src/pb_controller.cpp
+@@ -306,9 +306,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();
+ LOG(LOG_DEBUG, "pb_controller::play_file: running `%s'", cmdline.c_str());
+ ::system(cmdline.c_str());
+--- src/queueloader.cpp
++++ 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;
+ }