Jan Visser created CB-8931:
------------------------------

             Summary: 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-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to