Changeset 1592

Show
Ignore:
Timestamp:
09/28/06 20:17:17 (2 years ago)
Author:
mbonetti
Message:

bug: space in author would return a 404

Location:
trunk/gregarius
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/author.php

    r1561 r1592  
    2929 
    3030$a =trim(sanitize($_REQUEST['author'], RSS_SANITIZER_WORDS)); 
     31 
    3132list ($ra) = rss_fetch_row(rss_query( 
    3233    "select distinct(author) from " .getTable('item')  
    33     ." where author like '$a'" 
     34    ." where author = '$a'" 
    3435)); 
    3536 
  • trunk/gregarius/util.php

    r1573 r1592  
    277277            } 
    278278 
    279             $author = strip_tags($author); 
     279            $author = trim(strip_tags($author)); 
    280280 
    281281            // pubdate