[BUG] - Script bleeds through onto homepage

Discussion in 'General Discussion' started by DarkUFO, Apr 20, 2015.

  1. DarkUFO

    DarkUFO Member

    Joined:
    Feb 3, 2015
    Messages:
    36
    Likes Received:
    9
    As you can see from the attached screenshot, our poll code is displaying on the article list. All script code should be hidden.

    This is the code that is contained within the post

    Code:
    <script>
      (function () {
        var opst = document.createElement('script');
        var os_host = document.location.protocol == "https:" ? "https:" : "http:";
        opst.type = 'text/javascript';
        opst.async = true;
        opst.src = os_host + '//' + 'www.opinionstage.com/polls/2266099/embed.js';
        (document.getElementsByTagName('head')[0] ||
          document.getElementsByTagName('body')[0]).appendChild(opst);
      }());
    </script>

    Screenshot_2015-04-20-10-30-17.png Screenshot_2015-04-20-10-30-17.png
     
    #1

Share This Page