openziti / ziti-console

https://openziti.io
Apache License 2.0
23 stars 16 forks source link

Pasting Whitespace In Address Fields Is Not Stripped Out #538

Open TheDarkula opened 2 hours ago

TheDarkula commented 2 hours ago

Stemming from this discussion

In a host.v1 config, pasting anything with a trailing whitespace is captured.

As an example, pasting:

"*.fake.com "

will produce this config section:

"allowedAddresses": [
  "*.fake.com "
],
dovholuknf commented 2 hours ago

you pasted this into the json area or did you paste it into a form field? i'd argue both should do the same validation, but when it's json, i could see how it allowed for that. could you just confirm you pasted it into a form field?

TheDarkula commented 2 hours ago

Not json, into the ALLOWED ADDRESSES form field.