#13 ereg_replace error (line 527, links.php)

N/A-1
closed
nobody
5
2001-02-07
2001-02-06
No

If a user clicks the search button without entering any text (in the web links page), every link in the database is returned, with an accompanying error message (per link). To resolve this error, surround the two lines of code below:

$title = ereg_replace($query, "<b>$query</b>", $title);

$description = ereg_replace($query, "<b>$query</b>", $description);

With:

If ($query!="") {
$title = ereg_replace($query, "<b>$query</b>", $title);
$description = ereg_replace($query, "<b>$query</b>", $description);
}

Discussion

  • Nobody/Anonymous

    cannot recreate this. Maybe already fixed with new release.

     
  • Brian Lambeth

    Brian Lambeth - 2001-02-07
    • status: open --> closed
     

Log in to post a comment.