Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-94758

Forms is crashing when trying to save an empty form (with no fields) by the first time with </script> tag in the title

    Details

    • Fix Priority:
      3

      Description

      Summary:
      Forms is crashing when trying to save an empty form (with no fields) by the first time with </script> tag in the title.

      Steps to reproduce:

      1. Go to Content > Forms;
      2. Click to add a New Form;
      3. Type the following content in the title: "<script> my title </script>";
      4. Try to save the form.

      Expected result:
      The form should not be saved and a message should be shown informing to the user to add at least one field in order to save the form.

      Actual result:
      Forms is crashing when trying to save an empty form (with no fields) by the first time with </script> tag in the title.

      Notes:

      1. After adding a field, or if the user add a field before saving the form containing the </script> tag in the title, it is properly saved.
      2. If the user tries to save the Form with others tags in the title, the form is properly saved.

      Reproducible In:

      mastercb86f281f9df4768a47fa0d489c18e9f2085d573
      Updated on: Tue Apr 23 22:52:56 2019 -0700

      7.2.x
      Commit: 1c36a57c64cae694f871a33acb571fbb97799e1a
      Base Branch Commit: 3ad9ee1a8265f761e6126361fbe65ce2689b9b0e
      Updated on: Wed Apr 24 15:47:20 2019 -0700

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                9 weeks, 6 days ago

                Packages

                Version Package