Skip to content

Commit

Permalink
"MDL-25184, fixed regular expression of youtube"
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Nov 12, 2010
1 parent 081c914 commit ee14924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter/mediaplugin/filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function filter($text, array $options = array()) {
$search = '/<a[^>]*href="([^<]*?)youtube.com\/watch\?v=([^"]*)"[^>]*>(.*?)<\/a>/is';
$newtext = preg_replace_callback($search, 'filter_mediaplugin_youtube_callback', $newtext);

$search = '/<a.*?href="([^<]*)youtube.com\/v\/([^"]*)"[^>]*>(.*?)<\/a>/is';
$search = '/<a[^>]*href="([^<]*)youtube.com\/v\/([^"]*)"[^>]*>(.*?)<\/a>/is';
$newtext = preg_replace_callback($search, 'filter_mediaplugin_youtube_callback', $newtext);
}

Expand Down

0 comments on commit ee14924

Please sign in to comment.