This works fine when manually adding URLs via the admin, but on import from CSV all hyphens still get stripped.
Tried to find out where it goes wrong but as far as I can see, the call yourls_add_new_link( trim( $csv[1] ), $keyword ); in fileio/csv.php should (as far as I can tell) be using yourls_sanitize_keyword() which in turn uses the filter get_shorturl_charset. But apparently, I'm mistaken...
Hi, we're using the following filter (via a plugin) to allow hyphens in keywords:
This works fine when manually adding URLs via the admin, but on import from CSV all hyphens still get stripped.
Tried to find out where it goes wrong but as far as I can see, the call
yourls_add_new_link( trim( $csv[1] ), $keyword );
in fileio/csv.php should (as far as I can tell) be usingyourls_sanitize_keyword()
which in turn uses the filterget_shorturl_charset
. But apparently, I'm mistaken...Any thoughts?