Disable regex checking of URLs in SafeUriHostedModeUtils; this regex appears to
cause stack overflows in some cases.

Review at http://gwt-code-reviews.appspot.com/1443813


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@10285 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java b/user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java
index 597e63c..7b3dbe2 100644
--- a/user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java
+++ b/user/src/com/google/gwt/safehtml/shared/SafeUriHostedModeUtils.java
@@ -104,9 +104,11 @@
   }
 
   private static boolean isValidUri(String uri) {
-    if (!uri.matches(HREF_UCSCHAR)) {
-      return false;
-    }
+    // TODO(xtof): The regex appears to cause stack overflows in some cases.
+    // Investigate and re-enable.
+    // if (!uri.matches(HREF_UCSCHAR)) {
+    //   return false;
+    // }
     /*
      * pre-process to turn href-ucschars into ucschars, and encode to URI.
      *