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

get_string and get_strings must use PARAM_RAW instead of PARAM_TEXT

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9.5, 3.0.3, 3.1
    • 2.9.6, 3.0.4, 3.1
    • Web Services

    Description

      Currently the services get_string and get_strings use PARAM_TEXT,
      so when we use string with html tags like this : "Hello <em>Toto</em>" we got this error:

      Invalid external api response: the value is "Hello <em>Toto</em>", the server was expecting "text" type
      Error code: invalidresponse
      

      Attachments

        Issue Links

          Activity

            People

              fred Frédéric Massart
              taboubii Issam Taboubi
              David Monllaó David Monllaó
              Andrew Lyons Andrew Lyons
              Adrian Greeve Adrian Greeve
              Juan Leyva, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                9/May/16