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

There is no real error checking or file validation #80

Open
timthelion opened this issue Apr 16, 2019 · 0 comments
Open

There is no real error checking or file validation #80

timthelion opened this issue Apr 16, 2019 · 0 comments

Comments

@timthelion
Copy link

When I try to give this a file which is not a gpx file (for example a jpeg or a cvs file) I get errors that show that no real validation is happening:

gpx.js:262 Uncaught DOMException: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL
    at e._load_xml (http://test.localhost:8021/static/bow/leaflet-gpx/gpx.js:262:9)
    at e._parse (http://test.localhost:8021/static/bow/leaflet-gpx/gpx.js:291:12)
    at e.initialize (http://test.localhost:8021/static/bow/leaflet-gpx/gpx.js:91:12)
    at new e (http://test.localhost:8021/static/bow/leaflet/dist/leaflet.js:5:2745)
    at FileReader.<anonymous> (http://test.localhost:8021/kalendar/:600:19)
gpx.js:270 GET http://test.localhost:8021/kalendar/-----BEGIN%20PGP%20PUBLIC%20KEY%20BLOCK…gg70ajn5b5VHPvrw3poywoe/Q===Ct9S-----END%20PGP%20PUBLIC%20KEY%20BLOCK----- 414 (Request-URI Too Long)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant