Open main menu

CDOT Wiki β

Changes

User:Rueen

1,337 bytes added, 10:08, 13 November 2007
no edit summary
? test/unit/test_all.sh
Index: streamconv/converters/mozTXTToHTMLConv.cpp
===================================================================
RCS file: /cvsroot/mozilla/netwerk/streamconv/converters/mozTXTToHTMLConv.cpp,v
retrieving revision 1.85
diff -u -8 -p -r1.85 mozTXTToHTMLConv.cpp
--- streamconv/converters/mozTXTToHTMLConv.cpp 11 Mar 2007 00:17:00 -0000 1.85
+++ streamconv/converters/mozTXTToHTMLConv.cpp 8 Nov 2007 19:47:53 -0000
@@ -181,17 +181,17 @@ mozTXTToHTMLConv::CompleteAbbreviatedURL
if (pos >= aInLength)
return;
if (aInString[pos] == '@')
{
// only pre-pend a mailto url if the string contains a .domain in it..
//i.e. we want to linkify johndoe@foo.com but not "let's meet @8pm"
nsDependentString inString(aInString, aInLength);
- if (inString.FindChar('.', pos) != kNotFound) // if we have a '.' after the @ sign....
+ if ((inString.FindChar('.', pos) != kNotFound) && (inString.Find("..", 0) == kNotFound)) // if we have a '.' after the @ sign....
{
aOutString.AssignLiteral("mailto:");
aOutString += aInString;
}
}
else if (aInString[pos] == '.')
{
if (ItMatchesDelimited(aInString, aInLength,
 
</pre>
== Other ==
I have and will continue 'm interested in contributing to contribute to open source projects because I believe they are a great way to expand programming knowledgethe [http://zenit.senecac.on.ca/wiki/index.php/Desktop_Social_Networking_Integration Desktop Social Networking Integration] project as well as the [http://zenit.senecac.on.ca/wiki/index.php/Testing_of_Canadian_Banking_and_Financial_Sites_in_Mozilla Testing of Canadian Banking & Financial Sites in Mozilla] project.
== External Links ==
1
edit