← All changes
|
back/dynamics/subscription/SubscriptionInsertion.php
+2
-2
11.0.0
→
11.1.0
View file →
| @@ -301,13 +301,13 @@ | ||
| 301 | 301 | } |
| 302 | 302 | } |
| 303 | 303 | } |
| 304 | 304 | |
| 305 | - $unsubscribeLink = str_replace( | |
| 305 | + $unsubscribeLink = htmlspecialchars_decode(str_replace( | |
| 306 | 306 | ['{subscriber:id}', '{subscriber:key|urlencode}'], |
| 307 | 307 | [$user->id, urlencode($user->key)], |
| 308 | 308 | $this->unsubscribeLink[$email->id] |
| 309 | - ); | |
| 309 | + )); | |
| 310 | 310 | $email->addCustomHeader('List-Unsubscribe', '<'.$unsubscribeLink.'&ajax=1>, <mailto:'.$mailto.'?subject=unsubscribe_user_'.$user->id.'&body='.$body.'>'); |
| 311 | 311 | $email->addCustomHeader('List-Unsubscribe-Post', 'List-Unsubscribe=One-Click'); |
| 312 | 312 | } |
| 313 | 313 | |