зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1357121 - Allow dashes and underscore in OTA distribution name. r=nalexander
MozReview-Commit-ID: 9PchGiKPGLi --HG-- extra : rebase_source : 42360222fb3abc359d46180dc385c89a4c706cfb
This commit is contained in:
Родитель
f9cb2ecf9b
Коммит
820e8c33db
|
@ -878,7 +878,7 @@ public class Distribution {
|
|||
|
||||
// We restrict here to avoid injection attacks. After all,
|
||||
// we're downloading a distribution payload based on intent input.
|
||||
if (!content.matches("^[a-zA-Z0-9]+$")) {
|
||||
if (!content.matches("^[a-zA-Z0-9_-]+$")) {
|
||||
Log.e(LOGTAG, "Invalid referrer content: " + content);
|
||||
Telemetry.addToHistogram(HISTOGRAM_REFERRER_INVALID, 1);
|
||||
return null;
|
||||
|
|
Загрузка…
Ссылка в новой задаче