File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ const ExternalUrl = GT.Scalar({
2121} )
2222
2323function validUrlValue ( value : string ) {
24+ if ( value !== value . trim ( ) ) {
25+ return new InputValidationError ( { message : "Invalid value for ExternalUrl" } )
26+ }
27+
2428 try {
2529 const url = new URL ( value )
2630 if ( url . protocol !== "https:" && url . protocol !== "http:" ) {
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ const EndpointUrl = GT.Scalar({
2121} )
2222
2323function validUrlValue ( value : string ) {
24+ if ( value !== value . trim ( ) ) {
25+ return new InputValidationError ( { message : "Invalid value for EndpointUrl" } )
26+ }
27+
2428 try {
2529 const url = new URL ( value )
2630 if ( url . protocol !== "https:" && url . protocol !== "http:" ) {
You can’t perform that action at this time.
0 commit comments