Changeset 1462
- Timestamp:
- 05/08/06 18:29:32 (2 years ago)
- Files:
-
- 1 modified
-
trunk/rss/author.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/rss/author.php
r1190 r1462 28 28 require_once ('init.php'); 29 29 30 $a = preg_replace("/[^A-Za-z0-9\.]/","%",rss_real_escape_string($_REQUEST['author'])); 31 30 $a =trim(sanitize($_REQUEST['author'], RSS_SANITIZER_WORDS)); 32 31 list ($ra) = rss_fetch_row(rss_query( 33 32 "select distinct(author) from " .getTable('item') 34 ." where author like ' %$a%'"33 ." where author like '$a'" 35 34 )); 36 35 … … 43 42 $GLOBALS['rss']->feedList = new FeedList(false); 44 43 $authorItems = new ItemList(); 45 $sqlWhere = " i.author like '%$a%' "; 46 $authorItems->populate($sqlWhere); 44 $sqlWhere = " i.author like '$a' "; 45 $numItems = getConfig('rss.output.frontpage.numitems'); 46 $authorItems->populate($sqlWhere, 0, $numItems); 47 47 $authorItems->setTitle($t); 48 48 $authorItems->setRenderOptions(IL_NO_COLLAPSE|IL_TITLE_NO_ESCAPE);
