Skip to content

Commit e3e0090

Browse files
stevetranbyminggo
authored andcommitted
Fix can't open URLs that have '&' character. (#17633)
See discussion: http://discuss.cocos2d-x.org/t/small-fix-for-application-openurl-linux/35993
1 parent ad26098 commit e3e0090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos/platform/linux/CCApplication-linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ std::string Application::getVersion()
143143

144144
bool Application::openURL(const std::string &url)
145145
{
146-
std::string op = std::string("xdg-open ").append(url);
146+
std::string op = std::string("xdg-open '").append(url).append("'");
147147
return system(op.c_str()) == 0;
148148
}
149149

0 commit comments

Comments
 (0)