All pastes #292074 Raw Edit

Mine

public text v1 · immutable
#292074 ·published 2006-12-26 03:07 UTC
rendered paste body
--- mozilla-launcher    2006-12-26 14:02:40.500015086 +1100
+++ mozilla-launcher.new        2006-12-20 22:39:27.800709317 +1100
@@ -96,6 +96,7 @@

   # Handle multiple URLs by looping over the xremote call
   for u in "${urls[@]}"; do
+    u="$(sanitize_url $u)"
     if [[ $u == mailto:* ]]; then
       try_running "mailto(${u#mailto:})" || retval=$?
     else
@@ -600,6 +601,12 @@
   return 0
 }

+sanitize_url()
+{
+  # We only really need to filter '(', ')' and ',' as these break openURL
+  echo $1 | sed -e's/,/%2c/g' -e's/(/%28/g' -e's/)/%29/g'
+}
+
 # Call the main sub, which is defined at the top of this script
 main "$@"