Skip to content

Commit 0a3203f

Browse files
Nic Wallernicwaller
authored andcommitted
avoid deprecated yourls_encodeURI
1 parent 7817c2a commit 0a3203f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugin.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ function domainlimit_link_filter( $original_return, $url, $keyword = '', $title
3636

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

0 commit comments

Comments
 (0)