[pmwiki-devel] $UploadNameChars - adding unicode characters

Simon nzskiwi at gmail.com
Mon Jul 29 01:38:51 PDT 2019


https://pmwiki.org/wiki/PmWiki/UploadVariables#UploadNameChars


>From the page
The set of characters allowed in upload names. Defaults to "-\w. ", which
means alphanumerics, hyphens, underscores, dots, and spaces can be used in
upload names, and everything else will be stripped.$UploadNameChars
<https://pmwiki.org/wiki/PmWiki/UploadVariables#UploadNameChars> = "-\\w.
!"; # allow dash, letters, digits, dots, spaces and exclamations
$UploadNameChars
<https://pmwiki.org/wiki/PmWiki/UploadVariables#UploadNameChars> = "-\\w.
\\x80-\\xff"; # allow Unicode
Isn't \\x80-\\xff  just extended ASCII?




I'm trying to do this with no effect

  $UploadNameChars = "-\\w. !=\\+#\\x{014C}\\x{014D}"; # allow
exclamations, equals, plus, and hash Ōō

any advice appreciated

thanks

Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20190729/73b1d8a4/attachment.html>


More information about the pmwiki-devel mailing list