[rkward/frameworks] rkward: Make sure to strip temporary percent encoding from initial url arguments.

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Thu Sep 15 13:28:11 UTC 2016


Git commit 31a48212cdb47a7d400206c10e08b240e49968fa by Thomas Friedrichsmeier.
Committed on 15/09/2016 at 13:27.
Pushed by tfry into branch 'frameworks'.

Make sure to strip temporary percent encoding from initial url arguments.

M  +4    -1    rkward/main.cpp

http://commits.kde.org/rkward/31a48212cdb47a7d400206c10e08b240e49968fa

diff --git a/rkward/main.cpp b/rkward/main.cpp
index 2cf49e3..ea819ee 100644
--- a/rkward/main.cpp
+++ b/rkward/main.cpp
@@ -187,8 +187,11 @@ int main (int argc, char *argv[]) {
 
 	QStringList url_args = parser.positionalArguments ();
 	if (!url_args.isEmpty ()) {
+		for (int i = 0; i < url_args.size (); ++i) {
+			url_args[i] = decodeArgument (url_args[i]);
+		}
 		RKGlobals::startup_options["initial_urls"] = url_args;
-		RKGlobals::startup_options["warn_external"] = parser.isSet ("warn-external");
+		RKGlobals::startup_options["warn_external"] = !parser.isSet ("nowarn-external");
 	}
 	RKGlobals::startup_options["evaluate"] = decodeArgument (parser.value ("evaluate"));
 	RKGlobals::startup_options["backend-debugger"] = decodeArgument (parser.value ("backend-debugger"));



More information about the rkward-tracker mailing list