Page MenuHomePhabricator

ssh Login Error Call to undefined function phutil_utf8_shorten()
Closed, ResolvedPublic

Description

After this:

https://secure.phabricator.com/D10392#bc342b5e

the ssh login wont work, giving the error:

Call to undefined function phutil_utf8_shorten() in /var/www/phab/phabricator/scripts/ssh/ssh-exec.php on line 88

I added a fix:

'U' => id(new PhutilUTF8StringTruncator())
->setMaximumGlyphs(128)
->truncateString(implode(' ', array_slice($original_argv, 1)))

instead of

'U' => phutil_utf8_shorten(
   implode(' ', array_slice($original_argv, 1)),
   128),

Revisions and Commits

Event Timeline

pouyana raised the priority of this task from to Normal.
pouyana updated the task description. (Show Details)
pouyana added a project: Phabricator.
pouyana added a subscriber: pouyana.

Thanks! That should fix it at HEAD.