Commit Graph

11 Commits

Author SHA1 Message Date
FalseHonesty
5d0a937bb9 [MM-21835] Use URL instead of the url library (#1384)
Additionally, migrate all of the URL related helper functions
from `src/utils/utils.js` to the new `src/utils/url.js` file
and migrate tests.

Issue MM-21835
Fixes #1206
2020-11-04 20:59:07 +01:00
Guillermo Vayá
faeab18a0e [MM-22434] update joi, convert to json before validating (#1240)
* [MM-22434] update joi, convert to json before validating

* fix cr comments
2020-04-02 16:12:29 +02:00
Dean Whillier
e12d47ea62 Mm 16694 master validate urls (#1000)
* validate urls before deeplink or link click

* tests for isValidURL utility function

* review change - invert condition

* add validation for loaded files

bounds-info.json, app-state.json, config.json

* further validation and tweaks

certificate.json, permission.json

* add 2 more files for validation

* parse and validate deeplinks

- includes fix for windows deeplink when app is open

* disable auto-updator when in dev

* Squirrel is not used anymore

* fix validating allowedProtocols

* discard any args following a deeplink url

* tweaks

* update test

* support scheme’s with and without slashes

* stop after finding the first occurance of a deep link

* test updates

* updates to run tests successfully

* port updates to validation from 4.2

* url validation updates

changed validation package to better support internal domains and punycode domains
2019-09-09 12:38:31 -04:00
Yuya Ochiai
d73f98825e Apply no-var eslint rule 2018-09-03 21:41:04 +09:00
Yuya Ochiai
37b71476d2 Fix ESLint header/header error 2018-05-31 00:30:24 +09:00
Yuya Ochiai
60e6058869 Use ES6 import/export for modules 2018-04-10 22:00:30 +09:00
Jesse Hallam
620c5484e3 invoke yarn fix:js to adopt the updated eslint rules. No other changes are included. 2018-02-21 14:21:16 -05:00
Yuya Ochiai
16788b5a6f Fix eslint errors 2016-10-28 00:49:52 +09:00
Yuya Ochiai
682c45aeab Suppress verbose error in certificateStore 2016-10-26 00:40:53 +09:00
Kolja Lampe
b59f501a82 Some minor codestyle improvements due to jshint 2016-08-30 15:28:15 +02:00
Yuya Ochiai
066672205a Confirm to trust certificate when there is error
For #26
2016-03-06 22:00:23 +09:00