remotestorage / remotestorage.js

⬡ JavaScript client library for integrating remoteStorage in apps
https://remotestoragejs.readthedocs.io
MIT License
2.32k stars 141 forks source link

URL containing http:// breaks 'cloud' url in JS #5

Closed symroe closed 13 years ago

symroe commented 13 years ago

As title. At /unhosted/wappside/genkey/genkey.html entering http://example.com/ makes the JS POST to http://http//example.com//unhosted/cloudside/unhosted.php

(note double slash as well)

This confused me for a while, as it wasn't documented, and I'm used to forms detecting if I've added the http:// prefix.

michielbdejong commented 13 years ago

ah i see, sorry. i'm working on the next version, will pay some more attention to input checking there. thanks for reporting this

michielbdejong commented 13 years ago

Please note that this repository is now obsolete, and switch to https://github.com/DanielG/unhosted.js