Protocol changes

Changes from allowing ftp:// and file:// protocols to only http(s):// protocol
This commit is contained in:
Gear
2020-04-28 20:31:25 -04:00
committed by GitHub
parent 51828bd5a8
commit 0ba3d7fca9

View File

@@ -579,7 +579,7 @@ function start_vue() {
}
newmessage.content = newmessage.content.replace(
/(\b(https?|ftp|file):\/\/[\-A-Z0-9+&@#\/%?=~_|!:,.;]*[\-A-Z09+&@#\/%=~_|])/img, //Honestly good luck with this regex ~Gear
/(\b(https?):\/\/[\-A-Z0-9+&@#\/%?=~_|!:,.;]*[\-A-Z09+&@#\/%=~_|])/img, //Honestly good luck with this regex ~Gear
'<a href="$1">$1</a>');
//Unread indicator and insertion into current tab shown messages if sensible