Opened 2 years ago

Last modified 18 months ago

#18972 new defect

In LinkDialog, slash(/) is not allowed in query part

Reported by: enakatani Owned by:
Priority: undecided Milestone: 1.14
Component: Dijit Version: 1.10.4
Keywords: Cc:
Blocked By: Blocking:

Description

In LinkDialog?, if URL contains slash(/) in query part(after ?), validate fails showing error "The value entered is not valid". Steps to reproduce -

  1. Open ​https://dojotoolkit.org/reference-guide/1.10/dijit/_editor/plugins/LinkDialog.html
  2. Click on Run button (Under Examples section)
  3. Click the link icon to open the Link Properties dialog.
  4. In the URL field, attempt to type "​https://outlook.office.com/owa/?realm=sample.example.com&path=/calendar/view/WorkWeek"

It shows the warning message 'The value entered is not valid'.

If you replace slash with %2F, validation passes. For example: "​https://outlook.office.com/owa/?realm=sample.example.com&path=%2Fcalendar%2Fview%2FWorkWeek"

The link is for Outlook calendar and browsers such as Firefox or Chrome allow slash in the query part. I don't find any reason why it fails validation.

Change History (2)

comment:1 Changed 2 years ago by dylan

Milestone: tbd1.13

This should be a relatively easy fix. Any interest in creating a pull request per the contributing guidelines at https://github.com/dojo/dojo/blob/master/CONTRIBUTING.md ?

comment:2 Changed 18 months ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.