You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by rd...@apache.org on 2008/02/16 19:48:30 UTC

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

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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org