Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Fix PHP asciiToShortnameCallback (called on ASCII to shortname conversion) #603

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

icebird93
Copy link

When converting ASCII smileys using asciiToShortname, asciiToShortnameCallback is called. This function executes array_flip(array_reverse($ruleset->getShortcodeReplace())); that always results in an empty array, replacing ASCII smileys with empty strings.
Also, function should return shortnames for smileys and not their unicode equivalents, therefore only $ascii_replace is needed.

Fix PHP function asciiToShortnameCallback replacement
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant