support &spiderlinks=1 in addition to &spiderLinks=1

for add url in PageAddUrl.cpp.
This commit is contained in:
mwells 2013-09-30 14:59:48 -06:00
parent 12af05960e
commit 923d1becce

View File

@ -198,7 +198,10 @@ bool sendPageAddUrl ( TcpSocket *s , HttpRequest *r ) {
st1->m_strip = r->getLong("strip",0);
// Remember, for cgi, if the box is not checked, then it is not
// reported in the request, so set default return value to 0
st1->m_spiderLinks = r->getLong("spiderLinks",0);
long spiderLinks = r->getLong("spiderLinks",-1);
// also support all lowercase like PageInject.cpp uses
if ( spiderLinks == -1 )
spiderLinks = r->getLong("spiderlinks",0);
// . should we force it into spiderdb even if already in there
// . use to manually update spider times for a url