Date: Sat, 16 Sep 2017 19:12:25 +0000 (UTC) From: Tilman Keskinoz <arved@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r449974 - in head/www/newsbeuter: . files Message-ID: <201709161912.v8GJCP8u018535@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: arved Date: Sat Sep 16 19:12:25 2017 New Revision: 449974 URL: https://svnweb.freebsd.org/changeset/ports/449974 Log: Sanitize URLs in podbeuter too. Reported by: tj <tj@mrsk.me> Obtained from: https://github.com/akrennmair/newsbeuter/issues/598 Added: head/www/newsbeuter/files/patch-598.diff (contents, props changed) Modified: head/www/newsbeuter/Makefile Modified: head/www/newsbeuter/Makefile ============================================================================== --- head/www/newsbeuter/Makefile Sat Sep 16 17:45:55 2017 (r449973) +++ head/www/newsbeuter/Makefile Sat Sep 16 19:12:25 2017 (r449974) @@ -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/ Added: head/www/newsbeuter/files/patch-598.diff ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/newsbeuter/files/patch-598.diff Sat Sep 16 19:12:25 2017 (r449974) @@ -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; + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709161912.v8GJCP8u018535>