Author: rdonkin
Date: Sat Feb 16 10:48:29 2008
New Revision: 628372

URL: http://svn.apache.org/viewvc?rev=628372&view=rev
Log:
More characters that need escaping.

Modified:
    
james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java

Modified: 
james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java
URL: 
http://svn.apache.org/viewvc/james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java?rev=628372&r1=628371&r2=628372&view=diff
==============================================================================
--- 
james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java
 (original)
+++ 
james/server/trunk/experimental-seda-imap-function/src/test/java/org/apache/james/test/functional/ScriptBuilder.java
 Sat Feb 16 10:48:29 2008
@@ -442,7 +442,7 @@
 
         private void escape(char next) {
             if (next == '\\' || next == '*' || next=='.' || next == '[' || 
next == ']' || next == '+'
-                || next == '(' || next == ')') {
+                || next == '(' || next == ')' || next == '{' || next == '}' || 
next == '?') {
                 System.out.print('\\');
             }
         }
@@ -462,6 +462,9 @@
                 phrase = StringUtils.replace(phrase, "+", "\\+");
                 phrase = StringUtils.replace(phrase, "(", "\\(");
                 phrase = StringUtils.replace(phrase, ")", "\\)");
+                phrase = StringUtils.replace(phrase, "}", "\\}");
+                phrase = StringUtils.replace(phrase, "{", "\\{");
+                phrase = StringUtils.replace(phrase, "?", "\\?");
             }
             System.out.print(phrase);
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to