Changeset 59045 in spip-zone


Ignore:
Timestamp:
Mar 3, 2012, 10:41:53 PM (8 years ago)
Author:
fil@…
Message:

vimeo... ca risque d'etre long cette affaire...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/branches/spip-2.1/plugins/safehtml/inc/safehtml.php

    r59043 r59045  
    4040                false !== strpos($t, 'iframe')) {
    4141                        foreach (extraire_balises($t, 'iframe') as $iframe) {
    42                                 if (preg_match(',^http://((www\.)?youtube\.com)/.*,', extraire_attribut($iframe, 'src'))) {
     42                                if (preg_match(',^http://(www\.)?(youtube\.com|(player\.)?vimeo\.com)/.*,', extraire_attribut($iframe, 'src'))) {
    4343                                        $re = '___IFRAME___'.md5($iframe);
    4444                                        $ok[$re] = $iframe;
Note: See TracChangeset for help on using the changeset viewer.