Changeset 74382 in spip-zone


Ignore:
Timestamp:
Jul 19, 2013, 7:53:56 PM (7 years ago)
Author:
booz@…
Message:

oups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/plugins_seenthis/autoembed/autoembed.php

    r74381 r74382  
    8585                        }
    8686                }
    87                 else if (preg_match(",^http://[^\"\'\`\<\>\@\*\$]*?\.mp3$,i", $url)) {
     87                else if (preg_match(",^https?://[^\"\'\`\<\>\@\*\$]*?\.mp3$,i", $url)) {
    8888
    8989                        $html = file_get_contents(dirname(__FILE__).'/modeles/mp3.html');
    9090                        $html = str_replace('{source}', htmlspecialchars($url), $html);
    91                         $url_dewplayer = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']).'/modeles/dewplayer.swf';
     91                        $url_dewplayer = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']).'/autoembed/modeles/dewplayer.swf';
    9292                        $html = str_replace('{dewplayer}', $url_dewplayer, $html);
    9393                        if ($html) $code_ae = "<div class='oembed-container'>$html</div>";
Note: See TracChangeset for help on using the changeset viewer.