Support » Plugin: WordPress HTTPS (SSL) » [Plugin: WordPress HTTPS (SSL)] javascript gets broken (FIX inside)

  • Hello i recently started using https to completely secure our website

    Unfortunately, wordpress HTTPS, when activated rewrites the urls so that javascript stopped working, as parenthesis were removed.


    My header looks as following:

    <script type="text/javascript">

    WordPress HTTPS accidentally replaces “”) => with => “”
    (The round bracket is removed! Resulting in javascript syntax failure!)

    I investigated which regexp caused the failure and found out that the following fix solved the problem:

    @preg_match_all('/(http|https):\/\/[^\'"\)\s]+[\'"\)]+/i', $this->_html, $matches);
    @preg_match_all('/(http|https):\/\/[^\'"\)\s]+[^\'"\)]+/i', $this->_html, $matches);

  • The topic ‘[Plugin: WordPress HTTPS (SSL)] javascript gets broken (FIX inside)’ is closed to new replies.