Encode URL param to be safe
This commit is contained in:
parent
b1d689eb37
commit
2a88ed10b1
|
@ -55,7 +55,7 @@ const ConnectAccountPage = () => {
|
|||
isJetpackConnected:
|
||||
select( 'wc/admin/plugins' ).isJetpackConnected(),
|
||||
connectUrl:
|
||||
'admin.php?wcpay-connect=1&promo=' + incentive.id +
|
||||
'admin.php?wcpay-connect=1&promo=' + encodeURIComponent( incentive.id ) +
|
||||
'&_wpnonce=' + getAdminSetting( 'wcpay_welcome_page_connect_nonce' ),
|
||||
};
|
||||
} );
|
||||
|
|
Loading…
Reference in New Issue