Bug 702624 - Fix regex for replaceAll so it doesn't die. r=blassey
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 15 Dec 2011 10:46:36 -0500
changeset 82669 635b238dfc2ce0df59757fe6048ad61e38fd27b4
parent 82627 beac1650953419b86ca133e9374d10ec456d2aaa
child 82670 1eff10689611144cee136bbf06613a8ff6448a79
push id4052
push userbmo@edmorley.co.uk
push dateThu, 15 Dec 2011 17:28:45 +0000
treeherdermozilla-inbound@f776e38057b1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs702624
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 702624 - Fix regex for replaceAll so it doesn't die. r=blassey
mobile/android/base/CrashReporter.java.in
--- a/mobile/android/base/CrashReporter.java.in
+++ b/mobile/android/base/CrashReporter.java.in
@@ -326,11 +326,11 @@ public class CrashReporter extends Activ
             Log.i(LOGTAG, intent.toString());
             startActivity(intent);
         } catch (Exception e) {
             Log.e(LOGTAG, "error while trying to restart", e);
         }
     }
 
     private String unescape(String string) {
-        return string.replaceAll("\\\\", "\\").replaceAll("\\n", "\n").replaceAll("\\t", "\t");
+        return string.replaceAll("\\\\\\\\", "\\").replaceAll("\\\\n", "\n").replaceAll("\\\\t", "\t");
     }
 }