[
https://issues.apache.org/jira/browse/CB-6299?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13939954#comment-13939954
]
ASF GitHub Bot commented on CB-6299:
------------------------------------
Github user purplecabbage commented on the pull request:
https://github.com/apache/cordova-wp8/pull/30#issuecomment-38001455
@gabrielschulhof
Can you provide a test case that demonstrates the issue?
I thought this would do it, but it seems to load regardless of whether the
patch is applied.
```
var xhr = new XMLHttpRequest();
xhr.onload = function () {
console.log("loaded");
}
var loc = window.location.toString() + "#Hoopla";
xhr.open("GET", loc, true);
xhr.send();
```
> Ajax of local files not working when requested via absolute URL
> ---------------------------------------------------------------
>
> Key: CB-6299
> URL: https://issues.apache.org/jira/browse/CB-6299
> Project: Apache Cordova
> Issue Type: Bug
> Components: WP7, WP8
> Reporter: Gabriel Schulhof
> Assignee: Jesse MacFadyen
>
> The code does not properly strip slashes from the path name when the URL is
> absolute, because in that case the path name is prefixed with the protocol,
> so the protocol must be stripped off first.
> References:
> https://github.com/jquery/jquery-mobile/issues/6574
--
This message was sent by Atlassian JIRA
(v6.2#6252)