Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15430

vimeo & youtube bbcodes should use protocol safe URLs

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 3.2.1
    • Fix Version/s: None
    • Component/s: BBCode Engine
    • Labels:

      Description

      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>
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: