diff options
author | Friendika <info@friendika.com> | 2011-05-20 15:46:41 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-20 15:46:41 -0700 |
commit | 0abf2f11c6b3caaad2f9a833f477a094b7488e9a (patch) | |
tree | 07ed57fe2b3c17fe8b688b3472579ee770cdc1a0 /mod | |
parent | 5f20925220574323e8d32483e57ef9ebbf0b3256 (diff) | |
download | volse-hubzilla-0abf2f11c6b3caaad2f9a833f477a094b7488e9a.tar.gz volse-hubzilla-0abf2f11c6b3caaad2f9a833f477a094b7488e9a.tar.bz2 volse-hubzilla-0abf2f11c6b3caaad2f9a833f477a094b7488e9a.zip |
patches for youtube's change in link and embed formats, please test
Diffstat (limited to 'mod')
-rw-r--r-- | mod/update_network.php | 2 | ||||
-rw-r--r-- | mod/update_profile.php | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/mod/update_network.php b/mod/update_network.php index f9914abc2..36de0722a 100644 --- a/mod/update_network.php +++ b/mod/update_network.php @@ -26,6 +26,8 @@ function update_network_content(&$a) { $text = preg_replace($pattern, $replace, $text); $pattern = "/<\s*embed[^>]*>(.*?)<\s*\/\s*embed>/i"; $text = preg_replace($pattern, $replace, $text); + $pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i"; + $text = preg_replace($pattern, $replace, $text); echo str_replace("\t",' ',$text); diff --git a/mod/update_profile.php b/mod/update_profile.php index 40ee33325..c4884b30f 100644 --- a/mod/update_profile.php +++ b/mod/update_profile.php @@ -45,6 +45,8 @@ function update_profile_content(&$a) { $text = preg_replace($pattern, $replace, $text); $pattern = "/<\s*embed[^>]*>(.*?)<\s*\/\s*embed>/i"; $text = preg_replace($pattern, $replace, $text); + $pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i"; + $text = preg_replace($pattern, $replace, $text); /** * reportedly some versions of MSIE don't handle tabs in XMLHttpRequest documents very well |