Skip to content

Commit

Permalink
Make sure mastodon instance URLs are unslashed
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Dec 30, 2023
1 parent 32bdb6c commit b662899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-to-twitter-mastodon.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function wpt_update_mastodon_settings( $auth = false, $post = false ) {

if ( ! empty( $post['wpt_mastodon_token'] ) && ! empty( $post['wpt_mastodon_instance'] ) ) {
$ack = sanitize_text_field( trim( $post['wpt_mastodon_token'] ) );
$acs = sanitize_text_field( trim( $post['wpt_mastodon_instance'] ) );
$acs = sanitize_text_field( trim( untrailingslashit( $post['wpt_mastodon_instance'] ) ) );

if ( ! $auth ) {
// If values are filled with asterisks, do not update; these are masked values.
Expand Down

0 comments on commit b662899

Please sign in to comment.