Changeset 1098

Show
Ignore:
Timestamp:
11/19/07 17:08:44 (9 months ago)
Author:
Rickard
Message:

Revised fix for [1095].

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/upload/include/functions.php

    r1095 r1098  
    855855 
    856856        // Do a little spring cleaning 
    857         $destination_url = str_replace(array("\r", "\n", '%0a', '%0d', ';'), '', $destination_url); 
     857        $destination_url = preg_replace('/([\r\n])|(%0[ad])|(;[\s]*data[\s]*:)/i', '', $destination_url); 
    858858 
    859859        // If the delay is 0 seconds, we might as well skip the redirect all together