Support » Plugin: Smart YouTube PRO » [Plugin: Smart YouTube PRO] YouTube Link & Shortcodes

  • Hi,

    the regular expression for parsing the YouTube Link (smartyoutube.php line 670) does not handle a YouTube link within a shortcode correctly. Might also affect Metacafe, Vimeo, etc. links but I didn’t test it.


    [toggle][/toggle] results in ‘[/toggle]’ in $match[7] which ends up in $time in tag_youtube().

    [toggle] [/toggle] works.

    See regexp explain:

    ( group and capture to \7:
    [^<\s]* any character except: ‘<‘, whitespace
    (\n, \r, \t, \f, and ” “) (0 or more
    times (matching the most amount
    ) end of \7

    ‘[‘ should be part of the exception character set.


    Affected Smart Youtube Pro Versions: since 4.x most likely

  • The topic ‘[Plugin: Smart YouTube PRO] YouTube Link & Shortcodes’ is closed to new replies.