Skip to content

Commit

Permalink
avoid deprecated yourls_encodeURI
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic Waller authored and nicwaller committed Feb 23, 2024
1 parent 7817c2a commit 0a3203f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ function domainlimit_link_filter( $original_return, $url, $keyword = '', $title

// The plugin hook gives us the raw URL input by the user, but
// it needs some cleanup before it's suitable for parse_url().
$url = yourls_encodeURI( $url );
$url = yourls_escape( yourls_sanitize_url( $url) );
$url = yourls_sanitize_url_safe( $url );
if ( !$url || $url == 'http://' || $url == 'https://' ) {
$return['status'] = 'fail';
$return['code'] = 'error:nourl';
Expand Down

0 comments on commit 0a3203f

Please sign in to comment.