You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jan Visser (JIRA)" <ji...@apache.org> on 2015/04/29 10:36:06 UTC
[jira] [Commented] (CB-8931) Path in download function
plugin-file-transfer does not replace all slashes
[ https://issues.apache.org/jira/browse/CB-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14518965#comment-14518965 ]
Jan Visser commented on CB-8931:
--------------------------------
I have submitted a pull request here:
https://github.com/apache/cordova-plugin-file-transfer/pull/76
> Path in download function plugin-file-transfer does not replace all slashes
> ---------------------------------------------------------------------------
>
> Key: CB-8931
> URL: https://issues.apache.org/jira/browse/CB-8931
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File Transfer
> Affects Versions: 1.0.0
> Environment: Windows 8.0 / 8.1
> Reporter: Jan Visser
>
> The following code only removes the first slash. It should replace all slashes:
> {code:javascript}
> var nativeURI = storageFile.path.replace(appData.localFolder.path, 'ms-appdata:///local')
> .replace(appData.temporaryFolder.path, 'ms-appdata:///temp')
> .replace('\\', '/');
> {code}
> last line should read:
> {code:javascript}
> .replace(/\\/g, '/');
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org