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

Comparing trunk/Search/Processor.cpp (file contents):
Revision 363 by Douglas Thrift, 2004-08-19T20:09:52-07:00 vs.
Revision 364 by douglas, 2005-12-31T20:38:31-08:00

# Line 179 | Line 179 | bool Processor::process(HttpHandler& htt
179                                          == 0) || (lowerTag.find("meta   ") == 0)) && inHead)
180                                  {
181                                          if (lowerTag.find("name=robots") != string::npos ||
182 <                                                lowerTag.find("name=\"robots\"") != string::npos)
182 >                                                lowerTag.find("name=\"robots\"") != string::npos ||
183 >                                                lowerTag.find("name='robots'") != string::npos)
184                                          {
185                                                  unsigned start(lowerTag.find("content=\"") + 9),
186                                                          finish(lowerTag.find('\"', start));
# Line 208 | Line 209 | bool Processor::process(HttpHandler& htt
209                                                  }
210                                          }
211                                          else if (lowerTag.find("name=description") != string::npos
212 <                                                || lowerTag.find("name=\"description\"") !=
213 <                                                string::npos)
212 >                                                || lowerTag.find("name=\"description\"") != string::npos
213 >                                                || lowerTag.find("name='description'") != string::npos)
214                                          {
215                                                  unsigned start(lowerTag.find("content=\"") + 9),
216                                                          finish(lowerTag.find('\"', start));
# Line 228 | Line 229 | bool Processor::process(HttpHandler& htt
229                                                  string link(getLink(tag.substr(start, finish -
230                                                          start), url));
231  
232 +                                                if (!link.empty()) links.insert(link);
233 +                                        }
234 +                                        else if (lowerTag.find("href='") != string::npos)
235 +                                        {
236 +                                                unsigned start(lowerTag.find("href='") + 6),
237 +                                                        finish(lowerTag.find('\'', start));
238 +                                                string link(getLink(tag.substr(start, finish -
239 +                                                        start), url));
240 +
241                                                  if (!link.empty()) links.insert(link);
242                                          }
243                                          else if (lowerTag.find("href=") != string::npos)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines