Announcement

Symphony's issue tracker has been moved to Github.

Issues are displayed here for reference only and cannot be created or edited.

Browse

Closed#113: createFilename returns empty string

Works fine locally but moving to a client server it stops working. The problem is in:

preg_match_all('/[p{L}w:;.,+=~]+/', $string, $matches);

Changing it to:

preg_match_all('/[w:;.,+=~]+/', $string, $matches);

Solves the problem.

What was p{L} doing anyway? I thought the {...} syntax is for doing X number of items… but the L?

Thanks Max. Change is in. http://github.com/symphony/symphony-2/commit/78ad983198c2ac832de5b382917cf253a2fbec50

@Nick: It’s to do with unicode matching. here’s some info http://www.regular-expressions.info/unicode.html. Problem is, PHP’s regex functions don’t really support unicode matching.

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details