Ticket #6623: handler.patch

File handler.patch, 563 bytes (added by Valentin Lavrinenko <Valentin.Lavrinenko@…>, 12 years ago)
  • handler.php

    old new  
    227227
    228228    if (isset($_SESSION['video']['path'])) {
    229229        $escaped_path = str_replace('(', '\\(',$_SESSION['video']['path']);
    230         $escaped_path = str_replace(')', '\\)',$_SESSION['video']['path']);
     230        $escaped_path = str_replace(')', '\\)',$escaped_path);
    231231        $where .= ' AND videometadata.filename RLIKE '.$db->escape($escaped_path.'[/]*[^/]*$');
    232232    }
    233233// Deal with the parental locks