Show
Ignore:
Timestamp:
06/16/07 09:14:18 (18 months ago)
Author:
mbonetti
Message:

fix for author names with multiple successive escaped characters, which
would issue 404's

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/author.php

    r1656 r1735  
    2929 
    3030$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 
     34list ($ra) = rss_fetch_row(rss_query($sql)); 
    3535 
    3636if (!$ra) {