Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Fix: ensure uploaded media with spaces load in edit mode - #335

Merged
lognaturel merged 1 commit into
enketo:qa/3.0.2-prefrom
eyelidlessness:fix/edit-upload-spaces
Oct 16, 2021
Merged

lognaturel merged 1 commit into
enketo:qa/3.0.2-prefrom
eyelidlessness:fix/edit-upload-spaces

Conversation

@eyelidlessness

Copy link
Copy Markdown
Contributor

Also backfills tests for the rest of fileManager.getFileUrl behavior

Also backfills tests for the rest of `fileManager.getFileUrl` behavior
@eyelidlessness

Copy link
Copy Markdown
Contributor Author

Sorry for the PR noise, I realized I had reused an old branch in #334

@eyelidlessness eyelidlessness changed the title Fix: ensure media with spaces load in edit mode Fix: ensure uploaded media with spaces load in edit mode Oct 15, 2021
resolve( subject );
} else if ( instanceAttachments && ( Object.prototype.hasOwnProperty.call( instanceAttachments, escapedSubject ) ) ) {
resolve( instanceAttachments[ escapedSubject ] );
} else if ( instanceAttachments && ( Object.prototype.hasOwnProperty.call( instanceAttachments, subject ) ) ) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t believe the unescaped branch would ever be hit in normal browser-based usage. But it’s reasonable to leave in.

@lognaturel
lognaturel merged commit 455f87d into enketo:qa/3.0.2-pre Oct 16, 2021
@eyelidlessness eyelidlessness mentioned this pull request Oct 20, 2021
punkch pushed a commit to UNOPS/enketo-express that referenced this pull request Nov 5, 2021
Also backfills tests for the rest of `fileManager.getFileUrl` behavior
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants