mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-17 21:52:42 +00:00
Protocol changes
Changes from allowing ftp:// and file:// protocols to only http(s):// protocol
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user