ThWboard Support-Forum (Archiv)

Ort: / Boardübersicht / Code Hack Requests / Search Bug


Seite 1 von 1

fingersD schrieb am 04.02.2007 um 02:26 Uhr

Dont know if anyone else sees this but spam robots are bypasing the search.php form and POST directly to the search.php.... the html field restricts the number of characters to 35 but the the php code in search.php has no restriction....

So i added this below the

$navpath .= "<a class=\"bglink\" href=\"".build_link("search.php")."\">Search</a>";

///////////////////////////////////////////////////////////////////////////
        if( strlen($words) > 35 )
    {
        message("Error!", "Sorry, You CANNOT search with this many words.");
    }
///////////////////////////////////////////////////////////////////////////

It was only annoying in the access.log file

PhoenixDH schrieb am 04.02.2007 um 21:23 Uhr

Which file? In search.php there is no

$navpath .= "<a class="bglink" href="".build_link("search.php")."">Search</a>";

fingersD schrieb am 05.02.2007 um 12:41 Uhr

/* $Id: search.php,v 1.12 2004/01/04 10:55:34 thed_o_n Exp $ */
/*
~line 30 

/* $Id: search.php,v 1.11 2003/11/23 17:49:43 thed_o_n Exp $ */
/*
~line30

/* $Id: search.php 276 2005-03-28 06:51:01Z td $ */
/*
~line30

$navpath .= "<a class=\\"bglink\\\" href=\\\"".build_link("search.php")."\\\">Suche</a>";

single \ wont show in this forum
$navpath .= "<a class=\"bglink\" href=\"".build_link("search.php")."\">Suche</a>";

Seite 1 von 1