[Scummvm-git-logs] scummvm master -> 7d951fd9d2b902c9df928c67e7a9067e986c5ceb

sev- noreply at scummvm.org
Fri Jan 13 22:56:49 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7d951fd9d2 SLUDGE: Use unescaped value when calling openUrl in launch


Commit: 7d951fd9d2b902c9df928c67e7a9067e986c5ceb
    https://github.com/scummvm/scummvm/commit/7d951fd9d2b902c9df928c67e7a9067e986c5ceb
Author: Sebastian Krzyszkowiak (dos at dosowisko.net)
Date: 2023-01-13T23:56:46+01:00

Commit Message:
SLUDGE: Use unescaped value when calling openUrl in launch

newText is an escaped filename, which escapes characters like
: and /, which are essential for URLs. Use unescaped version
like original OpenSLUDGE does, as otherwise URLs get mangled
and become unusable.

Changed paths:
    engines/sludge/builtin.cpp


diff --git a/engines/sludge/builtin.cpp b/engines/sludge/builtin.cpp
index 936c801b80d..baeff56a958 100644
--- a/engines/sludge/builtin.cpp
+++ b/engines/sludge/builtin.cpp
@@ -877,7 +877,7 @@ builtIn(launch) {
 		(newTextA[4] == ':' || (newTextA[4] == 's' && newTextA[5] == ':'))) {
 
 		// IT'S A WEBSITE!
-		bool success = g_sludge->_system->openUrl(newText);
+		bool success = g_sludge->_system->openUrl(newTextA);
 		fun->reg.setVariable(SVT_INT, success);
 		return BR_CONTINUE;
 	}




More information about the Scummvm-git-logs mailing list