Merge pull request #33486 from piratesephiroth/uwp

[UWP] [Export] added additional checks for blank values
This commit is contained in:
Rémi Verschelde 2019-11-09 18:43:53 +01:00 committed by GitHub
commit 9369fd98a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -1144,11 +1144,21 @@ public:
return valid; return valid;
} }
if (!_valid_resource_name(p_preset->get("package/short_name"))) {
valid = false;
err += TTR("Invalid package short name.") + "\n";
}
if (!_valid_resource_name(p_preset->get("package/unique_name"))) { if (!_valid_resource_name(p_preset->get("package/unique_name"))) {
valid = false; valid = false;
err += TTR("Invalid package unique name.") + "\n"; err += TTR("Invalid package unique name.") + "\n";
} }
if (!_valid_resource_name(p_preset->get("package/publisher_display_name"))) {
valid = false;
err += TTR("Invalid package publisher display name.") + "\n";
}
if (!_valid_guid(p_preset->get("identity/product_guid"))) { if (!_valid_guid(p_preset->get("identity/product_guid"))) {
valid = false; valid = false;
err += TTR("Invalid product GUID.") + "\n"; err += TTR("Invalid product GUID.") + "\n";