diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-17 00:07:59 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-17 00:07:59 +0000 |
commit | 7480d774dfca97ea905321d52c70fd19496f0084 (patch) | |
tree | 8b664509b6be79bbe226fdd3994dadae56864b83 /app/assets/javascripts/lib | |
parent | 69d6d3ca2013e97cfd2d89449669ea7bf475f4e9 (diff) | |
download | gitlab-ce-7480d774dfca97ea905321d52c70fd19496f0084.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/lib')
-rw-r--r-- | app/assets/javascripts/lib/utils/url_utility.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/lib/utils/url_utility.js b/app/assets/javascripts/lib/utils/url_utility.js index cf1caed5cee..d48678c21f6 100644 --- a/app/assets/javascripts/lib/utils/url_utility.js +++ b/app/assets/javascripts/lib/utils/url_utility.js @@ -280,3 +280,5 @@ export const setUrlParams = (params, url = window.location.href, clearParams = f return urlObj.toString(); }; + +export const escapeFileUrl = fileUrl => encodeURIComponent(fileUrl).replace(/%2F/g, '/'); |