Skip to content
#

PHP

php logo

PHP is a popular general-purpose scripting language that's particularly suited for server-side web development. PHP runtime is generally executed by webpage content, and can be added to HTML and HTML5 webpages. PHP was originally developed in 1994 by Rasmus Lerdorf.

Here are 70,068 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

Liberating Web Analytics. Star us on Github? +1. Matomo is the leading open alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites, apps & the IoT and visualise this data and extract insights. Privacy is built-in. We love Pull Requests!

  • Updated Dec 8, 2020
  • PHP
ayumi-cloud
ayumi-cloud commented Jul 15, 2020
  • OctoberCMS Build: 467
  • PHP Version: 7.4

We had this code running in one of our plugins for quite a while, see example: https://octobertricks.com/tricks/register-custom-side-navigation-for-your-plugin

We believe it stopped working on v466 update (2 updates ago)

When adding the code line:

<?php

$sideMenuItems = BackendMenu::listSideMenuItems();
print_r($sideMenuItems);

Created by Rasmus Lerdorf

Released June 8, 1995

Organization
php
Website
secure.php.net
Wikipedia
Wikipedia

Related Topics

language
You can’t perform that action at this time.