Changeset 2933272
- Timestamp:
- 07/03/2023 08:59:06 AM (3 years ago)
- Location:
- app360/trunk
- Files:
-
- 3 edited
-
app360.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
registration.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
app360/trunk/app360.php
r2910565 r2933272 11 11 * Plugin URI: https://www.app360.my/ 12 12 * Description: App360 CRM allows the integration between WooCommerce and App360 13 * Version: 1.4. 213 * Version: 1.4.3 14 14 * Author: App360 15 15 * License: GPLv2 or later -
app360/trunk/readme.txt
r2910565 r2933272 4 4 Requires at least: 5.6 5 5 Tested up to: 5.8 6 Stable tag: 1.4. 26 Stable tag: 1.4.3 7 7 License: GPLv2 or later 8 8 … … 38 38 39 39 == Changelog == 40 = 1.4.3 = 41 *Release Date - 03 July 2023* 42 43 * bugfix | Encode GET method URL query value for app360 register & login API 44 40 45 = 1.4.2 = 41 46 *Release Date - 10 May 2023* -
app360/trunk/registration.php
r2910565 r2933272 105 105 106 106 $url = $app360_api_domain.'/client/register?'; 107 $url .= 'email='. $email;108 $url .= '&contact='. $contact;109 $url .= '&password='. $password;110 $url .= '&password_confirm='. $password;111 $url .= '&fullname='. $username;112 $url .= '&birthday='. $birthday;107 $url .= 'email='.urlencode($email); 108 $url .= '&contact='.urlencode($contact); 109 $url .= '&password='.urlencode($password); 110 $url .= '&password_confirm='.urlencode($password); 111 $url .= '&fullname='.urlencode($username); 112 $url .= '&birthday='.urlencode($birthday); 113 113 $headers = array(); 114 114 $headers['Content-type'] = 'application/json'; … … 268 268 else{// could not find the phone number 269 269 $url = $app360_api_domain.'/client/login?'; 270 $url .= 'username='. sanitize_text_field($_POST['username']);271 $url .= '&password='. $_POST['password'];270 $url .= 'username='.urlencode(sanitize_text_field($_POST['username'])); 271 $url .= '&password='.urlencode($_POST['password']); 272 272 $headers = array(); 273 273 $headers['Content-type'] = 'application/json'; … … 413 413 else{// could not find the email address 414 414 $url = $app360_api_domain.'/client/login?'; 415 $url .= 'username='. sanitize_text_field($_POST['username']);416 $url .= '&password='. $_POST['password'];415 $url .= 'username='.urlencode(sanitize_text_field($_POST['username'])); 416 $url .= '&password='.urlencode($_POST['password']); 417 417 $headers = array(); 418 418 $headers['Content-type'] = 'application/json';
Note: See TracChangeset
for help on using the changeset viewer.