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

/userpix/index.php produces invalid XHTML syntax

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8.3, 1.9
    • 1.8.3, 1.9
    • Other
    • None
    • MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      When browsing http://moodle.site/userpix/index.php on a 1.8.3.+ install, I get the following error with Firefox 2.0.11 on Linux:

      XML Parsing Error: not well-formed
      Location: http://localhost/moodle-18/userpix/index.php
      Line Number 100, Column 69:<a href="http://localhost/moodle-18/user/view.php?id=2&course=1"title="Admin User"><img src="http://localhost/moodle-18/user/pix.php/2/f1.jpg" style="border:0px; width:100px; height:100px" alt="Admin User" /></a>

      The error is due to a missing whitespace between the trailing " character of the 'a' tag and the beginning of the 'title' tag. The same problem is present in 1.9beta2, although Firefox show no XML parsing error unless you set Administration >> Server >> Debugging >> XML Strict Headers.

      The attached patches fix the issue for 1.8.3+ and 1.9beta2.

      Saludos. Iñaki.

            iarenaza Iñaki Arenaza
            iarenaza Iñaki Arenaza
            Nicolas Martignoni Nicolas Martignoni
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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