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

Allow spaces in URLs in the Web Content Tool

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 10.0
    • Fix Version/s: None
    • Component/s: Web Content
    • Labels:
      None

      Description

      According to Adam on the dev list, you cannot have spaces in a Web Content url as of Sakai 10. This is most likely to the aggressive HTML/URL sanitization effort to close security issues.

      Here is how to reproduce.

      Add a web content tool, set its URL to be:

      http://www.dr-chuck.com/index.php?x=a b

      Go into your database and do a SELECT like this:

      select * from sakai_site_tool_property where value like '%x=%'

      You will see that the url is stored in the database with the space between a and b.

      Then launch the tool and view source - you will see the URL has become:

      http://www.dr-chuck.com/index.php?x=a%20b

      This should probably be

      http://www.dr-chuck.com/index.php?x=a+b

      For any space after the ? at a minimum.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  csev Charles Severance
                  Reporter:
                  csev Charles Severance
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code