-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix malformed conversion of relative action URLs for forms (#4250)
* Fix malformed conversion of relative action URLs for forms * Simplify URL reconstruction by eliminating ternary expressions * Add failing case for pathless URL * Refactor determining action url to separate function * Set an empty path if none is defined but there is a host * Short-circuit when get_action_url has nothing to do * Add test for dotless relative path action URL Co-authored-by: Weston Ruter <westonruter@google.com>
- Loading branch information
1 parent
224c5c2
commit 91cea86
Showing
2 changed files
with
105 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters