Permalink
Browse files

Fixed paging on forum search

  • Loading branch information...
1 parent 4452e1a commit 1c36cd23bd5c20e02954742a2601fa8b117c13eb moodler committed Jul 20, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/forum/search.php
@@ -161,7 +161,7 @@
print_heading("$strsearchresults: $totalcount");
- print_paging_bar($totalcount, $page, $perpage, "search.php?search=$search&id=$course->id&perpage=$perpage&");
+ print_paging_bar($totalcount, $page, $perpage, "search.php?search=".urlencode(stripslashes($search))."&id=$course->id&perpage=$perpage&");
//added to implement highlighting of search terms found only in HTML markup
//fiedorow - 9/2/2005
@@ -230,7 +230,7 @@
echo "<br />";
}
- print_paging_bar($totalcount, $page, $perpage, "search.php?search=".urlencode($search)."&amp;id=$course->id&amp;perpage=$perpage&amp;");
+ print_paging_bar($totalcount, $page, $perpage, "search.php?search=".urlencode(stripslashes($search))."&amp;id=$course->id&amp;perpage=$perpage&amp;");
print_footer($course);

0 comments on commit 1c36cd2

Please sign in to comment.