yodaos-project / yoda.js

Application Framework that powered YodaOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

runtime: the url object should be in URI-encoded in the `openUrl()`

yorkie opened this issue · comments

  • Version: next
  • Platform: all
  • Subsystem: runtime

Here is the example to reproduce this problem:

rt.openUrl('yoda-app://telephony?from=+3678')

Then the url.query object should be:

{ from: ' 3678' }

A possible solution should call encodeURI or encodeURIComponent before calling the parse function.

Character + would be parsed as white space in URL spec. All characters except A-Z a-z 0-9 - _ . ! ~ * ' ( ) must be escaped in URI components.

Ok, I see and closing this :)