Skip to content

Commit

Permalink
Merge branch 'develop' for v3.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrobot47 committed Jan 2, 2025
2 parents d930519 + a3a28ba commit c8dca43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helper/site-utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ function auto_site_name( $args, $command, $function, $arg_pos = 0 ) {

if ( isset( $args[ $arg_pos ] ) ) {
$possible_site_name = $args[ $arg_pos ];
if ( substr( $possible_site_name, 0, 4 ) === 'http' ) {
$possible_site_name = str_replace( [ 'https', 'http' ], '', $possible_site_name );
if ( substr( $possible_site_name, 0, 7 ) === 'http://' || substr( $possible_site_name, 0, 8 ) === 'https://' ) {
$possible_site_name = str_replace( [ 'https://', 'http://' ], '', $possible_site_name );
}
$url_path = parse_url( EE\Utils\remove_trailing_slash( $possible_site_name ), PHP_URL_PATH );
if ( Site::find( $url_path ) ) {
Expand Down

0 comments on commit c8dca43

Please sign in to comment.