summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshell/source/unix/misc/open-url.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/source/unix/misc/open-url.sh b/shell/source/unix/misc/open-url.sh
index cbad78dbe5dc..98a4d3fe00bc 100755
--- a/shell/source/unix/misc/open-url.sh
+++ b/shell/source/unix/misc/open-url.sh
@@ -38,7 +38,9 @@ run_mozilla() {
if [ $? -eq 2 ]; then
"$1" "$2" &
else
- "$1" -remote "openURL($2, new-window)" &
+ "$1" -remote \
+ "openURL($(printf '%s' "$2" \
+ | sed -e 's/(/%28/g' -e 's/)/%29/g' -e 's/,/%2C/g'),new-window)" &
fi
else
"$1" "$2" &