Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1635

Broken javascript after proxy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Won't Fix
    • 2.5.0-beta1
    • 2.5.1
    • PHP

    Description

      I'm using google's gwt-gadgets library in gadget development. Generated javascript may contain construction like this:

      $replace(SQUOT_RE, s, ''')
      

      When this javascript is going thru proxy, it gets broken

      $replace(SQUOT_RE, s, ''') // 3 apostrophes
      

      The script is served as "text/javascript" content type.

      What helped for me is disabling content modification in php/src/gadgets/MakeRequest.php line 119:

        && strpos($result->getContentType(), 'javascript') == false) {
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            isemenko Igor Semenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: