Update of /cvsroot/mahogany/M/src/util
In directory usw-pr-cvs1:/tmp/cvs-serv17955/src/util
Modified Files:
matchurl.cpp
Log Message:
detect wrapped URLs (bug 525)
Index: matchurl.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/util/matchurl.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -b -u -2 -r1.1 -r1.2
--- matchurl.cpp 25 Apr 2002 18:25:41 -0000 1.1
+++ matchurl.cpp 25 Apr 2002 18:52:43 -0000 1.2
@@ -453,6 +453,20 @@
else // !bare mail address
{
+ for ( ;; )
+ {
while ( IsURLChar(*p) )
p++;
+
+ // URLs are frequently so long that they're spread across multiple
+ // lines, try to see if this might be the case here
+ if ( p[0] != '\r' || p[1] != '\n' || !IsURLChar(p[2]) )
+ {
+ // it isn't
+ break;
+ }
+
+ // continue on the next line and no need to test the first character
+ p += 3;
+ }
}
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates