<p><a href="https://github.com/dismantl"><img src="https://avatars.githubusercontent.com/u/2007008?" align="left" width="96" height="96" hspace="10" style="max-width:100%;"></a> <strong>Issue by <a href="https://github.com/dismantl">dismantl</a></strong><br><em>Monday Nov 25, 2013 at 21:44 GMT</em><br><em>Originally opened as <a href="https://github.com/opentechinstitute/commotion-lua-helpers/pull/1" class="issue-link" title="fix encoding functions return values">opentechinstitute/commotion-lua-helpers#1</a></em></p>

<hr><p>This should fix the problem of adding URLs into the add application form. Fixes <a href="https://github.com/opentechinstitute/luci-commotion-apps/issues/38" class="issue-link" title="URI validation fails">opentechinstitute/luci-commotion-apps#38</a>.</p>

<p>To test, create a gateway node and add applications with the following<br>
URLs (all should be accepted):</p>

<ul class="task-list">
<li>127.0.0.1</li>
<li><a href="http://commotionwireless.net/test">http://commotionwireless.net/test</a></li>
<li><a href="https://127.0.0.1/testing">https://127.0.0.1/testing</a></li>
<li><a href="https://127.0.0.1:22/testing/123.html?foo=bar&amp;baz=">https://127.0.0.1:22/testing/123.html?foo=bar&amp;baz=</a></li>
</ul><hr><p><em><strong><a href="https://github.com/dismantl">dismantl</a></strong> included the following code: <a href="https://github.com/opentechinstitute/commotion-lua-helpers/pull/1/commits">https://github.com/opentechinstitute/commotion-lua-helpers/pull/1/commits</a></em></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/opentechinstitute/luci-commotion/issues/245">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxODczMjU3MywiZGF0YSI6eyJpZCI6MzQ5ODA1MzJ9fQ==--46eb8ca02f9302bfb254c8ce7e7120108765030c.gif" width="1" /></p>