Skip to content

Commit

Permalink
Add additional rpcUrl verification (#7436)
Browse files Browse the repository at this point in the history
* Add additional url verification

* Add commas

* Address PR feedback

* Use URL over URI

* Update key in other languages

* Add stateKey check

* Split validateUrl into two separate methods

* Remove unused variable

* Add isValidWhenAppended method
  • Loading branch information
rickycodes authored Nov 19, 2019
1 parent 9d03865 commit 346c1f2
Show file tree
Hide file tree
Showing 49 changed files with 76 additions and 58 deletions.
2 changes: 1 addition & 1 deletion app/_locales/am/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@
"updatedWithDate": {
"message": "የዘመነ $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URIs አግባብነት ያለው የ HTTP/HTTPS ቅድመ ቅጥያ ይፈልጋል።"
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/ar/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@
"updatedWithDate": {
"message": "تم تحديث $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "تتطلب الروابط بادئة HTTP/HTTPS مناسبة."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/bg/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@
"updatedWithDate": {
"message": "Актуализирано $1 "
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI изискват съответния HTTP / HTTPS префикс."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/bn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@
"updatedWithDate": {
"message": "আপডেট করা $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI গুলির যথাযথ HTTP/HTTPS প্রেফিক্সের প্রয়োজন।"
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/ca/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@
"updatedWithDate": {
"message": "Actualitzat $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "Els URIs requereixen el prefix HTTP/HTTPS apropiat."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/cs/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@
"unknownNetwork": {
"message": "Neznámá soukromá síť"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI vyžadují korektní HTTP/HTTPS prefix."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/da/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@
"updatedWithDate": {
"message": "Opdaterede $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "Links kræver det rette HTTP/HTTPS-præfix."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@
"updatedWithDate": {
"message": "$1 aktualisiert"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URIs benötigen die korrekten HTTP/HTTPS Präfixe."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/el/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@
"updatedWithDate": {
"message": "Ενημερώθηκε το $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "Τα URI απαιτούν το κατάλληλο πρόθεμα HTTP/HTTPS."
},
"usedByClients": {
Expand Down
7 changes: 5 additions & 2 deletions app/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1474,8 +1474,11 @@
"updatedWithDate": {
"message": "Updated $1"
},
"uriErrorMsg": {
"message": "URIs require the appropriate HTTP/HTTPS prefix."
"urlErrorMsg": {
"message": "URLs require the appropriate HTTP/HTTPS prefix."
},
"urlExistsErrorMsg": {
"message": "URL is already present in existing list of networks"
},
"usedByClients": {
"message": "Used by a variety of different clients"
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@
"updatedWithDate": {
"message": "Actualizado $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI necesita el prefijo HTTP/HTTPS apropiado"
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/es_419/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@
"updatedWithDate": {
"message": "Actualización: $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "Los URI deben tener el prefijo HTTP/HTTPS apropiado."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/et/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@
"updatedWithDate": {
"message": "Värskendatud $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI-d nõuavad sobivat HTTP/HTTPS-i prefiksit."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/fa/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@
"updatedWithDate": {
"message": "بروزرسانی شد 1$1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URl ها نیازمند پیشوند مناسب HTTP/HTTPS اند."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/fi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,7 @@
"updatedWithDate": {
"message": "$1 päivitetty"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI:t vaativat asianmukaisen HTTP/HTTPS-etuliitteen."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/fil/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@
"updatedWithDate": {
"message": "Na-update ang $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "Kinakailangan ng mga URI ang naaangkop na HTTP/HTTPS prefix."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@
"updatedWithDate": {
"message": "Mis à jour $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "Les URLs requièrent un préfixe HTTP/HTTPS approprié."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/he/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@
"updatedWithDate": {
"message": "עודכן $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "כתובות URI דורשות את קידומת HTTP/HTTPS המתאימה."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/hi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@
"updatedWithDate": {
"message": "$1 अपडेट किया गया"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI को उपयुक्त HTTP/HTTPS प्रीफ़िक्स की आवश्यकता होती है।"
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/hn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@
"unknownNetwork": {
"message": "अज्ञात निजी नेटवर्क"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI-यूआरआई को उपयुक्त HTTP / HTTPS उपसर्ग की आवश्यकता होती है।"
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/hr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@
"updatedWithDate": {
"message": "Ažurirano $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI-jevima se zahtijeva prikladan prefiks HTTP/HTTPS."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/ht/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@
"updatedWithDate": {
"message": "Mete ajou $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URIs mande pou apwopriye prefiks HTTP / HTTPS a."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/hu/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@
"updatedWithDate": {
"message": "$1 frissítve"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "Az URI-hez szükség van a megfelelő HTTP/HTTPS előtagra."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/id/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@
"updatedWithDate": {
"message": "Diperbarui $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI memerlukan awalan HTTP/HTTPS yang sesuai."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@
"updatedWithDate": {
"message": "Aggiornata $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "Gli URI richiedono un prefisso HTTP/HTTPS."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/kn/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@
"updatedWithDate": {
"message": "$1 ನವೀಕರಿಸಲಾಗಿದೆ"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI ಗಳಿಗೆ ಸೂಕ್ತವಾದ HTTP/HTTPS ಪೂರ್ವಪ್ರತ್ಯಯದ ಅಗತ್ಯವಿದೆ."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/ko/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@
"updatedWithDate": {
"message": "$1에 업데이트 됨"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI는 HTTP/HTTPS로 시작해야 합니다."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/lt/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1347,7 +1347,7 @@
"updatedWithDate": {
"message": "Atnaujinta $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI reikia atitinkamo HTTP/HTTPS priešdėlio."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/lv/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@
"updatedWithDate": {
"message": "Atjaunināts $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI jāsākas ar atbilstošo HTTP/HTTPS priedēkli."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/ms/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@
"updatedWithDate": {
"message": "Dikemaskini $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI memerlukan awalan HTTP/HTTPS yang sesuai."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/nl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
"unknownNetwork": {
"message": "Onbekend privénetwerk"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "Voor URI's is het juiste HTTP / HTTPS-voorvoegsel vereist."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/no/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,7 @@
"updatedWithDate": {
"message": "Oppdatert $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI-er krever det aktuelle HTTP/HTTPS-prefikset."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/pl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@
"updatedWithDate": {
"message": "Zaktualizowano $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI wymaga prawidłowego prefiksu HTTP/HTTPS."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/pt/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@
"unknownNetwork": {
"message": "Rede Privada Desconhecida"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "Links requerem o prefixo HTTP/HTTPS apropriado."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/pt_BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@
"updatedWithDate": {
"message": "$1 atualizado"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URIs exigem o devido prefixo HTTP/HTTPS."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/ro/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@
"updatedWithDate": {
"message": "Actualizat $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URL necesită prefixul potrivit HTTP/HTTPS."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@
"unknownNetwork": {
"message": "Неизвестная частная сеть"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "Для URI требуется соответствующий префикс HTTP/HTTPS."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/sk/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@
"updatedWithDate": {
"message": "Aktualizované $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI vyžadují korektní HTTP/HTTPS prefix."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/sl/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@
"updatedWithDate": {
"message": "Posodobljeno $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI zahtevajo ustrezno HTTP/HTTPS predpono."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/sr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@
"updatedWithDate": {
"message": "Ažuriran $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI-ovi zahtevaju odgovarajući prefiks HTTP / HTTPS."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/sv/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@
"updatedWithDate": {
"message": "Uppdaterat $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI:er kräver lämpligt HTTP/HTTPS-prefix."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/sw/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@
"updatedWithDate": {
"message": "Imesasishwa $1"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI huhitaji kiambishi sahihi cha HTTP/HTTPS."
},
"usedByClients": {
Expand Down
2 changes: 1 addition & 1 deletion app/_locales/ta/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@
"unknownNetwork": {
"message": "அறியப்படாத தனியார் நெட்வொர்க்"
},
"uriErrorMsg": {
"urlErrorMsg": {
"message": "URI கள் சரியான HTTP / HTTPS முன்னொட்டு தேவை."
},
"usedByClients": {
Expand Down
Loading

0 comments on commit 346c1f2

Please sign in to comment.