mirror of
https://mau.dev/maunium/synapse.git
synced 2025-03-05 06:30:10 +01:00
Remove warning since the end result is still $sanitize'd
This commit is contained in:
parent
da19fd0d1a
commit
79bd6e77b8
1 changed files with 1 additions and 3 deletions
|
@ -82,9 +82,7 @@ angular.module('matrixWebClient')
|
|||
};
|
||||
}])
|
||||
// Exactly the same as ngSanitize's linky but instead of pushing sanitized
|
||||
// text in the addText function, we just push the raw text. This is ONLY SAFE
|
||||
// IF THIS IS USED IN CONJUNCTION WITH NG-BIND-HTML which sweeps with $sanitize
|
||||
// already.
|
||||
// text in the addText function, we just push the raw text.
|
||||
.filter('unsanitizedLinky', ['$sanitize', function($sanitize) {
|
||||
var LINKY_URL_REGEXP =
|
||||
/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"]/,
|
||||
|
|
Loading…
Add table
Reference in a new issue