Ticket #5723: 5723_patch.diff

File 5723_patch.diff, 667 bytes (added by Joe Ripley <vitaminjoe@…>, 16 years ago)

Fix SQL parenthesis escaping

  • mythplugins/mythweb/modules/video/handler.php

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