-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Reapply Fix escaping in the URL conversion #36949
Conversation
This pull request was exported from Phabricator. Differential Revision: D45078923 |
Base commit: 0e5d54a |
This pull request was exported from Phabricator. Differential Revision: D45078923 |
00b9bdb
to
5010e6b
Compare
Summary: Pull Request resolved: facebook#36949 This change is a second attempt at fixing URL encoding and escaping that was already tried [here](facebook@2b4e1f5). We had to roll it back due to some internal tests failing as it looks like Jest is manipulating the URL somehow. We manage to replicate the issue, which occur when we pre-decode a url even if it is not partially encoded (we were too aggrsssive). This fix ensure that we pre-decode the urls only if they present some `%` characters. This change should also fix facebook#28508 for good. ## Changelog: [iOS][Fixed] - Properly escape URLs Reviewed By: mdvacca Differential Revision: D45078923 fbshipit-source-id: b7154302260304291b09be5d5e7a0d43e0514ed3
This pull request was exported from Phabricator. Differential Revision: D45078923 |
Summary: Pull Request resolved: facebook#36949 This change is a second attempt at fixing URL encoding and escaping that was already tried [here](facebook@2b4e1f5). We had to roll it back due to some internal tests failing as it looks like Jest is manipulating the URL somehow. We manage to replicate the issue, which occur when we pre-decode a url even if it is not partially encoded (we were too aggrsssive). This fix ensure that we pre-decode the urls only if they present some `%` characters. The problem here was that the e2e tests sends some urls with some `%` symbol which does not belongs to an escape sequence. For example: `anna://launch?height=25%`. The previous code (v1) was trying to unescape this case. V2 fixes this. This change should also fix facebook#28508 for good. ## Changelog: [iOS][Fixed] - Properly escape URLs Reviewed By: mdvacca Differential Revision: D45078923 fbshipit-source-id: 0f29e94523c35e97c86daf7d710c599363d56352
5010e6b
to
5a8deb5
Compare
This pull request was exported from Phabricator. Differential Revision: D45078923 |
Summary: Pull Request resolved: facebook#36949 This change is a second attempt at fixing URL encoding and escaping that was already tried [here](facebook@2b4e1f5). We had to roll it back due to some internal tests failing as it looks like Jest is manipulating the URL somehow. We manage to replicate the issue, which occur when we pre-decode a url even if it is not partially encoded (we were too aggrsssive). This fix ensure that we pre-decode the urls only if they present some `%` characters. The problem here was that the e2e tests sends some urls with some `%` symbol which does not belongs to an escape sequence. For example: `anna://launch?height=25%`. The previous code (v1) was trying to unescape this case. V2 fixes this. This change should also fix facebook#28508 for good. ## Changelog: [iOS][Fixed] - Properly escape URLs Reviewed By: mdvacca Differential Revision: D45078923 fbshipit-source-id: 94e882e797db879c4f1be24d163817aa60ef3776
5a8deb5
to
43f6a83
Compare
This pull request was exported from Phabricator. Differential Revision: D45078923 |
Summary: Pull Request resolved: facebook#36949 This change is a second attempt at fixing URL encoding and escaping that was already tried [here](facebook@2b4e1f5). We had to roll it back due to some internal tests failing as it looks like Jest is manipulating the URL somehow. We manage to replicate the issue, which occur when we pre-decode a url even if it is not partially encoded (we were too aggrsssive). This fix ensure that we pre-decode the urls only if they present some `%` characters. The problem here was that the e2e tests sends some urls with some `%` symbol which does not belongs to an escape sequence. For example: `anna://launch?height=25%`. The previous code (v1) was trying to unescape this case. V2 fixes this. This change should also fix facebook#28508 for good. ## Changelog: [iOS][Fixed] - Properly escape URLs Reviewed By: mdvacca Differential Revision: D45078923 fbshipit-source-id: a09e434ac1365949f1a738c9c17111a92d55677b
43f6a83
to
f677a49
Compare
This pull request was exported from Phabricator. Differential Revision: D45078923 |
Summary: Pull Request resolved: facebook#36949 This change is a second attempt at fixing URL encoding and escaping that was already tried [here](facebook@2b4e1f5). We had to roll it back due to some internal tests failing as it looks like Jest is manipulating the URL somehow. We manage to replicate the issue, which occur when we pre-decode a url even if it is not partially encoded (we were too aggrsssive). This fix ensure that we pre-decode the urls only if they present some `%` characters. The problem here was that the e2e tests sends some urls with some `%` symbol which does not belongs to an escape sequence. For example: `anna://launch?height=25%`. The previous code (v1) was trying to unescape this case. V2 fixes this. This change should also fix facebook#28508 for good. ## Changelog: [iOS][Fixed] - Properly escape URLs Reviewed By: mdvacca Differential Revision: D45078923 fbshipit-source-id: 6daac460dd4424131341d18c400a39ce2b605436
f677a49
to
0505565
Compare
Summary: Pull Request resolved: facebook#36949 This change is a second attempt at fixing URL encoding and escaping that was already tried [here](facebook@2b4e1f5). We had to roll it back due to some internal tests failing as it looks like Jest is manipulating the URL somehow. We manage to replicate the issue, which occur when we pre-decode a url even if it is not partially encoded (we were too aggrsssive). This fix ensure that we pre-decode the urls only if they present some `%` characters. The problem here was that the e2e tests sends some urls with some `%` symbol which does not belongs to an escape sequence. For example: `anna://launch?height=25%`. The previous code (v1) was trying to unescape this case. V2 fixes this. This change should also fix facebook#28508 for good. ## Changelog: [iOS][Fixed] - Properly escape URLs Reviewed By: mdvacca Differential Revision: D45078923 fbshipit-source-id: 3e6cbd0c0532e85c31fb0b7aa3ab3cef1c5c6f6c
0505565
to
1a394ba
Compare
This pull request was exported from Phabricator. Differential Revision: D45078923 |
Summary: Pull Request resolved: facebook#36949 This change is a second attempt at fixing URL encoding and escaping that was already tried [here](facebook@2b4e1f5). We had to roll it back due to some internal tests failing as it looks like Jest is manipulating the URL somehow. We manage to replicate the issue, which occur when we pre-decode a url even if it is not partially encoded (we were too aggrsssive). This fix ensure that we pre-decode the urls only if they present some `%` characters. The problem here was that the e2e tests sends some urls with some `%` symbol which does not belongs to an escape sequence. For example: `anna://launch?height=25%`. The previous code (v1) was trying to unescape this case. V2 fixes this. This change should also fix facebook#28508 for good. ## Changelog: [iOS][Fixed] - Properly escape URLs Reviewed By: mdvacca Differential Revision: D45078923 fbshipit-source-id: 2796d175ac21befc49afd1b940d5c2a0c93ed00b
This pull request was exported from Phabricator. Differential Revision: D45078923 |
1a394ba
to
b307f96
Compare
This pull request has been merged in 5e983d5. |
Summary: Pull Request resolved: facebook#36949 This change is a second attempt at fixing URL encoding and escaping that was already tried [here](facebook@2b4e1f5). We had to roll it back due to some internal tests failing as it looks like Jest is manipulating the URL somehow. We manage to replicate the issue, which occur when we pre-decode a url even if it is not partially encoded (we were too aggrsssive). This fix ensure that we pre-decode the urls only if they present some `%` characters. The problem here was that the e2e tests sends some urls with some `%` symbol which does not belongs to an escape sequence. For example: `anna://launch?height=25%`. The previous code (v1) was trying to unescape this case. V2 fixes this. This change should also fix facebook#28508 for good. ## Changelog: [iOS][Fixed] - Properly escape URLs Reviewed By: mdvacca Differential Revision: D45078923 fbshipit-source-id: 010a5c173784f8341a1a08bcbd06a6ad14299c75
Summary: Pull Request resolved: facebook#36949 This change is a second attempt at fixing URL encoding and escaping that was already tried [here](facebook@2b4e1f5). We had to roll it back due to some internal tests failing as it looks like Jest is manipulating the URL somehow. We manage to replicate the issue, which occur when we pre-decode a url even if it is not partially encoded (we were too aggrsssive). This fix ensure that we pre-decode the urls only if they present some `%` characters. The problem here was that the e2e tests sends some urls with some `%` symbol which does not belongs to an escape sequence. For example: `anna://launch?height=25%`. The previous code (v1) was trying to unescape this case. V2 fixes this. This change should also fix facebook#28508 for good. ## Changelog: [iOS][Fixed] - Properly escape URLs Reviewed By: mdvacca Differential Revision: D45078923 fbshipit-source-id: 010a5c173784f8341a1a08bcbd06a6ad14299c75
Summary:
This change is a second attempt at fixing URL encoding and escaping that was already tried here.
We had to roll it back due to some internal tests failing as it looks like Jest is manipulating the URL somehow.
We manage to replicate the issue, which occur when we pre-decode a url even if it is not partially encoded (we were too aggrsssive).
This fix ensure that we pre-decode the urls only if they present some
%
characters.This change should also fix #28508 for good.
Changelog:
[iOS][Fixed] - Properly escape URLs
Differential Revision: D45078923