Changeset 1735
- Timestamp:
- 06/16/07 09:14:18 (16 months ago)
- Location:
- trunk/gregarius
- Files:
-
- 2 modified
-
author.php (modified) (1 diff)
-
cls/wrappers/item.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gregarius/author.php
r1656 r1735 29 29 30 30 $a = trim(sanitize($_REQUEST['author'], RSS_SANITIZER_WORDS)); 31 list ($ra) = rss_fetch_row(rss_query( 32 "select distinct(author) from " .getTable('item')33 ." where author like '%$a'" 34 ));31 $sql = "select distinct(author) from " .getTable('item') 32 ." where author like '%$a'"; 33 34 list ($ra) = rss_fetch_row(rss_query($sql)); 35 35 36 36 if (!$ra) { -
trunk/gregarius/cls/wrappers/item.php
r1730 r1735 213 213 function rss_item_author() { 214 214 if (($a = $GLOBALS['rss'] -> currentItem -> author) != null) { 215 $ea = preg_replace('/[^a-zA-Z0-9] +/','_',$a);215 $ea = preg_replace('/[^a-zA-Z0-9]/','_',$a); 216 216 if (getConfig('rss.output.usemodrewrite')) { 217 217 $a = "<a href=\"".getPath() ."author/$ea\">$a</a>";
