aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-23 19:10:35 -0700
committerzotlabs <mike@macgirvin.com>2018-04-23 19:10:35 -0700
commitb688dc3995a679fe58cfcc636806248026910d9d (patch)
tree3c8a12d011c2b74fb9087c75c43c5fed1260f976 /include/channel.php
parent59ac3d04eb7739e995a1d7392c4ef8ca0b6c5f86 (diff)
downloadvolse-hubzilla-b688dc3995a679fe58cfcc636806248026910d9d.tar.gz
volse-hubzilla-b688dc3995a679fe58cfcc636806248026910d9d.tar.bz2
volse-hubzilla-b688dc3995a679fe58cfcc636806248026910d9d.zip
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.
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php5
1 files changed, 5 insertions, 0 deletions
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)
);