ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/URL.cpp
(Generate patch)

Comparing trunk/Search/URL.cpp (file contents):
Revision 359 by Douglas Thrift, 2004-06-04T04:08:28-07:00 vs.
Revision 360 by Douglas Thrift, 2004-08-19T20:09:52-07:00

# Line 88 | Line 88 | void URL::setURL(const string& url)
88          if (url.find("http://") != 0 || url.length() <= 7)
89          {
90                  cerr << program << ": Malformed URL: " << url << "\n";
91 +
92                  exit(1);
93          }
94  
# Line 175 | Line 176 | string getLink(string link, URL& url)
176   #ifndef _OpenSSL_
177                  if (link.find("http://") == 0 && link.length() > 7) hyperlink = link;
178   #else
179 <                if (link.find("http://") == 0 && link.length() > 7 ||
180 <                        link.find("https://") == 0 && link.length() > 8) hyperlink = link;
179 >                if (link.find("http://") == 0 && link.length() > 7
180 >                        || link.find("https://") == 0 && link.length() > 8)
181 >                        hyperlink = link;
182   #endif
183          }
184          else if (link.find("mailto:") == 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines