cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8931) Path in download function plugin-file-transfer does not replace all slashes
Date Thu, 07 May 2015 06:24:01 GMT

    [ https://issues.apache.org/jira/browse/CB-8931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14532089#comment-14532089
] 

ASF subversion and git services commented on CB-8931:
-----------------------------------------------------

Commit 3effd7f1fe4e3e7828fb67ecf6e233dc8a80604d in cordova-plugin-file-transfer's branch refs/heads/pulls/76
from [~vladimir.kotikov]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file-transfer.git;h=3effd7f ]

CB-8931 Replace all slashes in windows path


> 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


Mime
View raw message