Replay Modes aka gapless - all - single Real Fix

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
MarcoP
Posts: 46
Joined: Wed Mar 24, 2010 1:46 pm

Replay Modes aka gapless - all - single Real Fix

Post by MarcoP »

skins/classic/views/event.php line 58 change

Code: Select all

if ( isset( $_REQUEST['replayMode'] ) )
    $replayMode = validHtmlStr($_REQUEST['replayMode']);
to

Code: Select all

if ( isset( $_COOKIE['replayMode']) && preg_match('#^[a-z]+$#', $_COOKIE['replayMode']) )
    $replayMode = validHtmlStr($_COOKIE['replayMode']);
Haven't check what validHtmlStr() really does but just to be sure I'm using preg_match() for additional security.
whatboy
Posts: 304
Joined: Mon Aug 31, 2009 10:31 pm

Post by whatboy »

Cool!!! Thanks!!!
MarcoP
Posts: 46
Joined: Wed Mar 24, 2010 1:46 pm

Post by MarcoP »

Post Reply