Uploaded image for project: 'Mattermost'
  1. MM-9547

Add a whitelist for valid types of links when autolinking

    Details

    • Type: Story
    • Status: Closed
    • Resolution: Done
    • Fix Version/s: v5.0 (~June 2018)
    • Labels:
      None
    • Mana:
      4
    • Sprint:
      Mattermost Sprint 15, Mattermost Sprint 16, Mattermost Sprint 17
    • Mattermost Team:
      ICU
    • QA Test Steps:
      See description
    • QA Testing Areas:
      Messages, System Console

      Description

      Autolinking should use a system-wide list of url schemes (plus the defaults).

      Rename the Customization > Link Previews section of the System Console to Customization > Posts and add the following setting below the "Enable Link Previews" setting:

      Custom URL Schemes [ E.g.: "test123, test456" ]
      Allow message text to link if it begins with any of the URL schemes listed here. By default, the following protocols will create links: "http", "https", "ftp", "tel", and "mailto".

      Config setting ``CustomUrlSchemes`` should be added to the ServiceSettings section of config with an empty default value.

      ------

      Note that "http", "https", "ftp", "tel", and "mailto" should autolink without needing to be specified, and cannot be removed.

        Attachments

          Activity

            People

            • Assignee:
              hmhealey Harrison Healey
              Reporter:
              hmhealey Harrison Healey
              QA Assignee:
              Linda Mitchell
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: