Jump to main content Jump to doc navigation

friendly_alias_restrict_chars_pattern

Name: FURL Alias Character Restriction Pattern Type: Textfield Default: (See Below) Available In: Revolution 2.0.6+

A valid RegEx pattern for restricting characters used in a Resource alias.

Default:

/[\0\x0B\t\n\r\f\a&=+%#<>"~:`@\?\[\]\{\}\|\^\'\\\\]/

If you add . here so aliases cannot contain periods, keep that change out of file uploads. With upload_translit enabled, MODX 3.1.0+ uses upload_translit_restrict_chars_pattern for uploaded names. On 3.0.x the same FURL pattern also cleaned uploads, so a . in this setting turned photo.jpg into photojpg.

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • CrewMark
  • Fabian Christen
  • Sepia River Studios
  • Dannevang Digital
  • Alex
  • A. Moreno
  • Chris Fickling
  • Stéphane Jäggi
  • Murray Wood
  • Anton Tarasov
  • JT Skaggs
  • deJaya
  • Lefthandmedia
  • eydolan
  • Following Sea
  • Guido Gallenkamp
  • YJ
  • Raffy
  • Snow Creative
  • Nick Clark
  • Guest
  • Helen
  • krisznet
  • Yanni
  • Richard

Budget

$194 per month—let's make that $500!

Learn more