This commit is contained in:
Anthony 2021-10-13 19:40:28 +01:00
parent 3be9cdd77c
commit b46ef7d61b
5 changed files with 14 additions and 10 deletions

View File

@ -1,3 +1,7 @@
## [5.2.1] - 2020-10-13
* Bug fixes
## [5.2.0] - 2020-10-11 ## [5.2.0] - 2020-10-11
* Migrate to Nylo 2.1.0 * Migrate to Nylo 2.1.0

View File

@ -4,7 +4,7 @@
# WooCommerce App: Label StoreMax # WooCommerce App: Label StoreMax
### Label StoreMax - v5.2.0 ### Label StoreMax - v5.2.1
[Official WooSignal WooCommerce App](https://woosignal.com) [Official WooSignal WooCommerce App](https://woosignal.com)

View File

@ -38,32 +38,32 @@ class WebViewState extends NyState<PayPalCheckout> {
String tmp = ""; String tmp = "";
if (customerAddress.firstName != null) { if (customerAddress.firstName != null) {
tmp += tmp +=
'<input type="hidden" name="first_name" value="${customerAddress.firstName}">\n'; '<input type="hidden" name="first_name" value="${customerAddress.firstName.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
} }
if (customerAddress.lastName != null) { if (customerAddress.lastName != null) {
tmp += tmp +=
'<input type="hidden" name="last_name" value="${customerAddress.lastName}">\n'; '<input type="hidden" name="last_name" value="${customerAddress.lastName.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
} }
if (customerAddress.addressLine != null) { if (customerAddress.addressLine != null) {
tmp += tmp +=
'<input type="hidden" name="address1" value="${customerAddress.addressLine}">\n'; '<input type="hidden" name="address1" value="${customerAddress.addressLine.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
} }
if (customerAddress.city != null) { if (customerAddress.city != null) {
tmp += tmp +=
'<input type="hidden" name="city" value="${customerAddress.city}">\n'; '<input type="hidden" name="city" value="${customerAddress.city.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
} }
if (customerAddress.customerCountry.hasState() && if (customerAddress.customerCountry.hasState() &&
customerAddress.customerCountry.state.name != null) { customerAddress.customerCountry.state.name != null) {
tmp += tmp +=
'<input type="hidden" name="state" value="${customerAddress.customerCountry.state.name}">\n'; '<input type="hidden" name="state" value="${customerAddress.customerCountry.state.name.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
} }
if (customerAddress.postalCode != null) { if (customerAddress.postalCode != null) {
tmp += tmp +=
'<input type="hidden" name="zip" value="${customerAddress.postalCode}">\n'; '<input type="hidden" name="zip" value="${customerAddress.postalCode.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
} }
if (customerAddress.customerCountry.countryCode != null) { if (customerAddress.customerCountry.countryCode != null) {
tmp += tmp +=
'<input type="hidden" name="country" value="${customerAddress.customerCountry.countryCode}">\n'; '<input type="hidden" name="country" value="${customerAddress.customerCountry.countryCode.replaceAll(new RegExp(r'[^\d\w\s,\-+]+'),'')}">\n';
} }
formCheckoutShippingAddress = tmp; formCheckoutShippingAddress = tmp;
} }

View File

@ -1,7 +1,7 @@
# Official WooSignal App Template for WooCommerce # Official WooSignal App Template for WooCommerce
# Label StoreMax # Label StoreMax
# Version: 5.2.0 # Version: 5.2.1
# Author: Anthony Gordon # Author: Anthony Gordon
# Homepage: https://woosignal.com # Homepage: https://woosignal.com
# Documentation: https://woosignal.com/docs/app/ios/label-storemax # Documentation: https://woosignal.com/docs/app/ios/label-storemax

View File

@ -4,7 +4,7 @@
# WooCommerce App: Label StoreMax # WooCommerce App: Label StoreMax
### Label StoreMax - v5.2.0 ### Label StoreMax - v5.2.1
[Official WooSignal WooCommerce App](https://woosignal.com) [Official WooSignal WooCommerce App](https://woosignal.com)