From b688dc3995a679fe58cfcc636806248026910d9d Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 23 Apr 2018 19:10:35 -0700 Subject: minor tweak to utf8 usernames after some testing of the underlying encode/decode funations. This probably isn't critical and I do not have a failure case but just trying to cover all bases. --- include/channel.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/channel.php') diff --git a/include/channel.php b/include/channel.php index 4bf490bf0..42a392e8e 100644 --- a/include/channel.php +++ b/include/channel.php @@ -2240,6 +2240,11 @@ function get_zcard_embed($channel, $observer_hash = '', $args = array()) { * - false if no channel with $nick was found */ function channelx_by_nick($nick) { + + // If we are provided a Unicode nickname convert to IDN + + $nick = punify($nick); + $r = q("SELECT * FROM channel left join xchan on channel_hash = xchan_hash WHERE channel_address = '%s' and channel_removed = 0 LIMIT 1", dbesc($nick) ); -- cgit v1.2.3