Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15430

vimeo & youtube bbcodes should use protocol safe URLs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • None
    • 3.2.1
    • BBCode Engine

      The default HTML replacements for youtube and vimeo should use protocol safe URLs ( i.e. //, not http:// or https:// ) so that they work correctly when behind (or not) an HTTPS proxy:

       

      youtube:

      <iframe width="560" height="315" src="//www.youtube.com/embed/{IDENTIFIER}" frameborder="0" allowfullscreen></iframe>
      <p>
      <a href="//www.youtube.com/watch?v={IDENTIFIER}">Watch on YouTube</a>
      </p>
      

      vimeo:

      <iframe src="//player.vimeo.com/video/{IDENTIFIER}?title=0&amp;byline=0&amp;portrait=0" width="400" height="225" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
      <p>
      <a href="//vimeo.com/{IDENTIFIER}">Watch on Vimeo</a>
      </p>
      

            Unassigned Unassigned
            mrironside mrironside [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: