rabble-rouser / Healthspek-WebSpeks

Healthspek Web Speks Developer's Guide and Quick-Start Template
0 stars 0 forks source link

Validate and format the test URL #6

Closed aowie1 closed 10 years ago

aowie1 commented 10 years ago

Currently, a user may enter anything in the URL field. The most apparent flaw is that if an http:// should be forcibly prepended if missing.

kencaron commented 10 years ago

http:// is now prepended if not present in string.

I'm not sure that full URL validation is needed, seeing that that isn't a use case handled by the iOS Test Harness.

peterbee commented 10 years ago

This does not take into consideration the // syntax. Perhaps that is what should be prepended to a URL as well. Then when we switch the Preview to SSL the loaded Speks will also be over SSL.

kencaron commented 10 years ago

Good call, updated.