parent
e79b33c706
commit
19eb4d5d36
@ -84,6 +84,7 @@ function yourls_add_new_link( $url, $keyword = '', $title = '' ) {
|
||||
yourls_trim_long_string($url), preg_replace('!https?://!', '', yourls_get_yourls_site()) . '/'. $url_exists->keyword );
|
||||
$return['title'] = $url_exists->title;
|
||||
$return['shorturl'] = yourls_link($url_exists->keyword);
|
||||
$return['errorCode'] = $return['statusCode'] = '400'; // 400 Bad Request
|
||||
|
||||
return yourls_apply_filter( 'add_new_link_already_stored_filter', $return, $url, $keyword, $title );
|
||||
}
|
||||
|
@ -461,7 +461,7 @@ function yourls_get_HTTP_status( $code ) {
|
||||
510 => 'Not Extended'
|
||||
];
|
||||
|
||||
return isset( $headers_desc[ $code ] ) ? $headers_desc[ $code ] : '';
|
||||
return $headers_desc[$code] ?? '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user