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

dedeprecate Validator.escapeUrl() as there isn't a suitable replacement

    XMLWordPrintable

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.x
    • Fix Version/s: 2.9.x
    • Component/s: Kernel
    • Labels:
      None

      Description

      At the moment Validator.escapeUrl() is deprecated stating that java.net.URLEncode.encode() should be used instead, but these two methods are not the same and produce different results. I think it's worth pointing people to URLEncode.encode() as the standard way todo URLEncoding but I don't this it's a case where code calling Validator.escapeUrl() can be replaced with URLEncode.encode() without consideration.

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                k1team KERNEL TEAM (Inactive)
                Reporter:
                buckett Matthew Buckett
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration