Skip to content
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 protocol relative URLs for the image #59

Merged
merged 1 commit into from
Dec 9, 2022
Merged

Allow protocol relative URLs for the image #59

merged 1 commit into from
Dec 9, 2022

Conversation

samwilson
Copy link
Member

Both http and https are already allowed, and the actual validation is done based on hostname so there shouldn't be any issue with making this regex more lenient.

Bug: T324740

@samwilson samwilson force-pushed the image-url branch 3 times, most recently from b5291e9 to bdf3c36 Compare December 9, 2022 01:59
@samwilson
Copy link
Member Author

I'm fixing the Phan failure here by upgrading Phan, see #60.

* Remove the imageUrl member variable, and pass the image around
  as a param as is done for other form variables etc.
* Add 'https' to protocol-relative URLs, and also make the
  validation regex more lenient (even though there shouldn't be
  any need for it to be now the controller adds the prefix).

Bug: T324740
@samwilson
Copy link
Member Author

Oh well, the Phan upgrade didn't fix it; have suppressed it for now. Will follow up later because we need to get this merged.

@samwilson samwilson merged commit a1f346a into main Dec 9, 2022
@samwilson samwilson deleted the image-url branch December 9, 2022 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant