Skip to content

Commit

Permalink
Remove trailing slashes from urls when submitting a bot.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanbohacek committed Feb 24, 2023
1 parent c3a1f3a commit 6fd09a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions template-submit-your-bot.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ function get_network_name( $network_term_slug ){

$bot_meta = array();
$bot_meta['bot_is_featured'] = 'on';
$bot_urls = array_map(function($url){
return rtrim($url, '/\\');
}, $bot_urls);
$bot_meta['bot_url'] = trim( implode( "\n", $bot_urls ) );
$bot_meta['bot_source_url'] = trim( $_POST['bot-source-url'] );
$bot_meta['bot_tweets'] = trim( $_POST['bot-selected-tweets'] );
Expand Down

0 comments on commit 6fd09a4

Please sign in to comment.