| @@ -306,10 +306,12 @@ | ||
| 306 | 306 | $name = $website->name; |
| 307 | 307 | $verifyCertificate = (int) $website->verify_certificate; |
| 308 | 308 | $forceUseIPv4 = $website->force_use_ipv4; |
| 309 | 309 | $sslVersion = $website->ssl_version; |
| 310 | - $http_user = $website->http_user; | |
| 311 | - $http_pass = $website->http_pass; | |
| 310 | + // MWP-1548: decrypt at the boundary so the reconnect / | |
| 311 | + // try_visit call below uses plaintext credentials. | |
| 312 | + $http_user = MainWP_Credential_Storage::decrypt_credential( $website->http_user ); | |
| 313 | + $http_pass = MainWP_Credential_Storage::decrypt_credential( $website->http_pass ); | |
| 312 | 314 | } |
| 313 | 315 | } |
| 314 | 316 | // phpcs:enable |
| 315 | 317 | |