Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-53291

ajax requests with data containing "??" get mangled by jquery $.ajax

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.10, 2.9.4, 3.0.2
    • Fix Version/s: 2.9.5, 3.0.3
    • Component/s: JavaScript
    • Labels:

      Description

      ajax requests with data containing "??" gets mangled by jquery $.ajax
      refs:

      can be fixed by adding

      contentType: "application/json"
      

      or alternatively

       jsonp:false 
      

      to var settings in lib/amd/src/ajax.js:~145

      or by sending an object and letting jquery stringify itself, but this didnt work when i tested it.
      testing example
      admin/tool/templatelibrary/index.php
      type

      ???
      

      into the search box it will create an error.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Mar/16