esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r917187 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/MsgParser.scala
Date Sun, 28 Feb 2010 14:53:07 GMT
Author: vdichev
Date: Sun Feb 28 14:53:07 2010
New Revision: 917187

URL: http://svn.apache.org/viewvc?rev=917187&view=rev
Log:
Fix infinite loop in mailto action parsing.

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/MsgParser.scala

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/MsgParser.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/MsgParser.scala?rev=917187&r1=917186&r2=917187&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/MsgParser.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/MsgParser.scala Sun Feb
28 14:53:07 2010
@@ -259,7 +259,7 @@
   lazy val _perform: Parser[Performances] =
   (acceptCI("filter") ~ lineSpace ~ EOF ^^^ PerformFilter) |
   (acceptCI("resend") ~ lineSpace ~ EOF ^^^ PerformResend) |
-  (mailtoUrl ~ opt(rep(EOL) ~> rep1(anyChar)) <~ EOF ^^ {
+  (mailtoUrl ~ opt(rep1(not(EOF) ~ EOL) ~> rep1(anyChar)) <~ EOF ^^ {
     case mt ~ text => MailTo(mt, text.map(_ mkString))
   }) |
   (scheme ~ userPass ~ urlpart ~ rep(httpHeader) ~ httpData <~ EOF ^^ {



Mime
View raw message