File tree Expand file tree Collapse file tree
server/src/service/infrastructure/network Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -817,7 +817,7 @@ const CreateMonitorPage = () => {
817817 field . onChange (
818818 e . target . value
819819 . replace ( / [ < > ] / g, "" )
820- . replace ( / j a v a s c r i p t : / gi, "" )
820+ . replace ( / (?: j a v a s c r i p t | d a t a | v b s c r i p t ) : / gi, "" )
821821 . replace ( / [ ^ \t \x20 - \x7E \x80 - \xFF ] / g, "" ) // RFC 7230 header-safe chars only
822822 . slice ( 0 , 500 )
823823 ) ;
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ export const SettingsPage = () => {
446446 field . onChange (
447447 e . target . value
448448 . replace ( / [ < > ] / g, "" )
449- . replace ( / j a v a s c r i p t : / gi, "" )
449+ . replace ( / (?: j a v a s c r i p t | d a t a | v b s c r i p t ) : / gi, "" )
450450 . replace ( / [ ^ \t \x20 - \x7E \x80 - \xFF ] / g, "" ) // RFC 7230 header-safe chars only
451451 . slice ( 0 , 500 )
452452 ) ;
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export class HttpProvider implements IStatusProvider<HttpStatusPayload> {
6161
6262 return value
6363 . replace ( / [ < > ] / g, "" )
64- . replace ( / j a v a s c r i p t : / gi, "" )
64+ . replace ( / (?: j a v a s c r i p t | d a t a | v b s c r i p t ) : / gi, "" )
6565 . replace ( / [ ^ \t \x20 - \x7E \x80 - \xFF ] / g, "" ) // allow only RFC 7230 header-safe characters
6666 . trim ( )
6767 . slice ( 0 , 500 ) ;
You can’t perform that action at this time.
0 commit comments