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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.5, 3.0.3, 3.1
    • Fix Version/s: 2.9.6, 3.0.4, 3.1
    • Component/s: Web Services
    • Labels:

      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

              Assignee:
              fred Frédéric Massart
              Reporter:
              taboubii Issam Taboubi
              Peer reviewer:
              David Monllaó
              Integrator:
              Andrew Nicols
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/May/16