-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow URLs without protocol #3551
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrections needed: also protocol http:// needs to be accepted.
AutoForm.hooks({ | ||
apiDetailsForm: { | ||
formToModifier: (doc) => { | ||
const host = 'https://'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem: this checks only https://, not http://, which is still acceptable protocol.
@@ -14,6 +14,15 @@ import { sAlert } from 'meteor/juliancwirko:s-alert'; | |||
|
|||
AutoForm.hooks({ | |||
addApiForm: { | |||
formToDoc: (doc) => { | |||
const host = 'https://'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem: this checks only https://, not http://, which is still acceptable protocol.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Functionality as expected
Closes #2290
Changes
Describe your changes here as a bulleted list:
Developer checklist
This checklist is to be completed by the PR developer:
Reviewer checklist
Reviewed by: @matleppa
This list is to be completed by the pull request reviewer: