The Wayback Machine - http://web.archive.org/web/20201208185416/https://github.com/topics/php-framework
Skip to content
#

php-framework

Here are 1,357 public repositories matching this topic...

symfony
pmishev
pmishev commented Nov 30, 2020

Symfony version(s) affected: 4.4.16

Description
StringUtil::trim() is doing preg_replace('/^[\pZ\p{Cc}]+|[\pZ\p{Cc}]+$/u', '', $string) to trim strings, however this regex is missing ZERO WIDTH SPACE (\xE2\x80\x8B) characters.

How to reproduce
http://sandbox.onlinephpfunctions.com/code/5b72e8ff76c34a313c0f2799995f56e5993b6b60

Possible Solution

p{Cf} catch

PrestaShop

Improve this page

Add a description, image, and links to the php-framework topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the php-framework topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.