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

Problem with character conversion in a complex url

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.1.4
    • Activity completion
    • None
    • MOODLE_401_STABLE

      Hello, good morning, I have discovered a behavior that may be wrong.

      I have a course that includes several URL type activities, this one in particular has to work with a complex URL of the type https://XXX.YYY.ZZ/DDD/Publica/look[pub]ShowInfo?entradaPublica=true&idiomaPais=es.ES&_anoA=2023&_cod=29004

      It is a get-type URL, but it does the translation indicated below. When the corresponding teacher user builds or edits the activity, this url is typed in the box called "External URL", the activity is completed and saved without any problem.

       When viewing the course, you enter that activity and click on the corresponding link, the browser does not display the required information. When checking the url that came from Moodle, I find that it has changed all the & to & resulting in a non-existent url on the site where it points. This same behavior is repeated when tested with the administrator user. As part of the tests I have done, I find that if I put a text in the description of the activity and within said text, I include a link with the original address, it works without any problem and takes me to the page that has the complex url.

      Other person, Mr. Castro Fernández, has verified this issue and the URLs are broken in some Moodle 4.1 installations and in others they are not.

      My Moodle version is  4.1.4+ (Build: 20230714)  and the PHP version is 7.4.30

       

            Unassigned Unassigned
            lfortiz Luis Fernando Ortiz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.