relax encoding of slashes just for plaintext display, so links can be detected

This commit is contained in:
El RIDO 2020-02-01 16:30:41 +01:00
parent d7fd6667fd
commit 3996f82404
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
3 changed files with 3 additions and 3 deletions

View file

@ -2424,7 +2424,7 @@ jQuery.PrivateBin = (function($, RawDeflate) {
// escape HTML entities, link URLs, sanitize
const escapedLinkedText = Helper.urls2links(
Helper.htmlEntities(text)
Helper.htmlEntities(text).split('/').join('/')
),
sanitizedLinkedText = DOMPurify.sanitize(escapedLinkedText);
$plainText.html(sanitizedLinkedText);