Changeset 1509

Show
Ignore:
Timestamp:
06/24/06 19:46:39 (2 years ago)
Author:
mbonetti
Message:

Fix for the (unlikely) situation where two feeds with the same name exists,
resulting in a 404 when we access either one.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/feed.php

    r1474 r1509  
    6262    $sqlid = sanitize($_REQUEST['channel'], RSS_SANITIZER_SIMPLE_SQL | RSS_SANITIZER_NO_SPACES); 
    6363    $sql = "select id from " . getTable("channels") ." where title like '$sqlid'"; 
    64  
    6564    if (hidePrivate()) { 
    6665        $sql .=" and not(mode & " . RSS_MODE_PRIVATE_STATE .") "; 
     
    7170    $res =  rss_query( $sql ); 
    7271    //echo $sql; 
    73     if ( rss_num_rows ( $res ) == 1) { 
     72    if ( rss_num_rows ( $res ) >= 1) { 
    7473        list($cid) = rss_fetch_row($res); 
    7574    } else {