You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If, for example, the sequence %B2 exists somewhere in the site_token, sanitize_text_field( $_POST['site_token'] ) will strip it out breaking the site_token.
And I'm not sure if using sanitize_text_field() will be appropriate here and can't use sanitize_key() because it will convert all uppercase letters to lowercase and ultimately failing the whole process.
Note: if the token doesn't contain spaces and other special characters, sanitize_text_field() should work most of the times!
Is there any workaround for this?
If, for example, the sequence
%B2
exists somewhere in the site_token,sanitize_text_field( $_POST['site_token'] )
will strip it out breaking the site_token.In class-syndication-wp-rest-client.php:
update_post_meta( $site_ID, 'syn_site_token', push_syndicate_encrypt( sanitize_text_field( $_POST['site_token'] ) ) );
Not sure the best way to sanitize this field or if it even needs to be sanitized, but my current workaround:
The text was updated successfully, but these errors were encountered: