4bde7046e7
Submitted by: gahr Obtained from: https://github.com/shellinabox/shellinabox/pull/448/
22 lines
883 B
Text
22 lines
883 B
Text
--- shellinabox/vt100.jspp.orig 2018-11-13 14:31:22 UTC
|
|
+++ shellinabox/vt100.jspp
|
|
@@ -118,7 +118,8 @@ function VT100(container) {
|
|
'(?::[1-9][0-9]*)?' +
|
|
|
|
// Path.
|
|
- '(?:/(?:(?![/ \u00A0]|[,.)}"\u0027!]+[ \u00A0]|[,.)}"\u0027!]+$).)*)*|' +
|
|
+ '(?:/(?:(?![/ \u00A0]|[,.)}"\u0027!]+[ \u00A0]|[,.)}"\u0027!]+$)' +
|
|
+ '[-a-zA-Z0-9@:%_\+.~#?&//=])*)*|' +
|
|
|
|
(linkifyURLs <= 1 ? '' :
|
|
// Also support URLs without a protocol (assume "http").
|
|
@@ -149,7 +150,8 @@ function VT100(container) {
|
|
'(?::[1-9][0-9]{0,4})?' +
|
|
|
|
// Path.
|
|
- '(?:/(?:(?![/ \u00A0]|[,.)}"\u0027!]+[ \u00A0]|[,.)}"\u0027!]+$).)*)*|') +
|
|
+ '(?:/(?:(?![/ \u00A0]|[,.)}"\u0027!]+[ \u00A0]|[,.)}"\u0027!]+$)' +
|
|
+ '[-a-zA-Z0-9@:%_\+.~#?&//=])*)*|') +
|
|
|
|
// In addition, support e-mail address. Optionally, recognize "mailto:"
|
|
'(?:mailto:)' + (linkifyURLs <= 1 ? '' : '?') +
|