Show
Ignore:
Timestamp:
01/02/07 22:57:46 (23 months ago)
Author:
mbonetti
Message:

fix for #255. See RSS_URI_SEPARATOR in constants.php

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/feed.php

    r1649 r1653  
    6060    && !is_numeric($_REQUEST['channel']) 
    6161) { 
    62     $sqlid = sanitize($_REQUEST['channel'], RSS_SANITIZER_SIMPLE_SQL | RSS_SANITIZER_NO_SPACES); 
     62    $sqlid = preg_replace('#'.RSS_URI_SEPARATOR.'#','_', 
     63        sanitize($_REQUEST['channel'] , RSS_SANITIZER_SIMPLE_SQL ) 
     64        ); 
    6365 
    6466    $sql = "select id from " . getTable("channels") ." where title like '$sqlid'"; 
     
    7072    // $sql .= " and not(mode & " . RSS_MODE_DELETED_STATE . ") "; 
    7173 
     74//  die($sql); 
    7275    $res =  rss_query( $sql ); 
    7376    //echo $sql;