youtube_autoplay-2685721-4.patch 1.1 KB

1234567891011121314151617181920212223242526
  1. diff --git a/video_embed_field.handlers.inc b/video_embed_field.handlers.inc
  2. index 1962008..b9fe593 100644
  3. --- a/video_embed_field.handlers.inc
  4. +++ b/video_embed_field.handlers.inc
  5. @@ -195,7 +195,7 @@ function video_embed_field_handle_youtube($url, $settings) {
  6. // Construct the embed code.
  7. $settings['wmode'] = 'opaque';
  8. - $settings_str = urlencode(_video_embed_code_get_settings_str($settings));
  9. + $settings_str = _video_embed_code_get_settings_str($settings);
  10. $output['#markup'] = '<iframe class="' . check_plain($class) . '" width="' . check_plain($settings['width']) . '" height="' . check_plain($settings['height']) . '" src="//www.youtube.com/embed/' . $id . '?' . $settings_str . '" frameborder="0" allowfullscreen></iframe>';
  11. diff --git a/video_embed_field.module b/video_embed_field.module
  12. index 8826ead..e4f4282 100644
  13. --- a/video_embed_field.module
  14. +++ b/video_embed_field.module
  15. @@ -617,7 +617,7 @@ function _video_embed_code_get_settings_str($settings = array()) {
  16. $values[] = $name;
  17. }
  18. else {
  19. - $values[] = $name . '=' . $value;
  20. + $values[] = $name . '=' . urlencode($value);
  21. }
  22. }