Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All KML files are being treated as HTTP URLs, even KMLs on disk #1401

Closed
jetherton opened this issue Sep 3, 2014 · 1 comment
Closed

All KML files are being treated as HTTP URLs, even KMLs on disk #1401

jetherton opened this issue Sep 3, 2014 · 1 comment

Comments

@jetherton
Copy link
Collaborator

json.php controller treats all link as HTTP URLs, even files on the local hard disk. This breaks all KMLs uploaded to Ushahidi. You could prepend file:/// to the file path, but using an HttpClient to read a file on local storage is like driving your car to get a glass of water in the kitchen.

jetherton added a commit that referenced this issue Sep 3, 2014
This fixes ticket  #1401 - All KML files are being treated as HTTP URLs, even KMLs on disk.
@jetherton
Copy link
Collaborator Author

Fixed by using readfile() for files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant