Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-1398

Can enter javascript into Syllabus entries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1.0
    • Component/s: Syllabus
    • Labels:
      None

      Description

      I created a new Syllabus entry. I toggled text view in the WYSIWYG editor, and pasted in the following code:

      <SCRIPT LANGUAGE="JavaScript">
      <!-- Original: Michael Mann -->
      <!-- Web Site: http://www.manninc.com/ -->

      <!-- This script and many more are available free online at -->
      <Unable to render embedded object: File (-- The JavaScript Source) not found.! http://javascript.internet.com -->

      <!-- Begin
      var now = new Date();
      var month = now.getMonth() + 1;
      var date = now.getDate();
      var year = now.getYear();
      var season;
      if (month > 1 && month <= 3) season = "Winter";
      if (month == 3 && date > 19) season = "Spring";
      if (month > 3 && month <= 6) season = "Spring";
      if (month == 6 && date > 20) season = "Summer";
      if (month > 6 && month <= 9) season = "Summer";
      if (month == 9 && date > 21) season = "Fall";
      if (month > 9 && month <= 12) season = "Fall";
      if (month == 12 && date > 20) season = "Winter";
      //Y2K Fix
      if (year < 2000) year = year + 1900;
      //Winter Season Fix
      if (season == "Winter") year = year - 1;
      document.write(season + " " + year);
      // End -->
      </script>

      <p><center>
      <font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
      by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
      </center><p>

      I then posted the Syllabus entry. When I viewed the syllabus, the code was parsed correctly.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                Unassigned Unassigned
                Reporter:
                mikebeasley Michael Beasley (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration