There is a string in /lib/prefs/username.php that really gives me headaches. How on earth does this have to be escaped, so tra() will catch it from the array_merge in custom.php?
Here is the entire file:
<?php // (c) Copyright 2002-2016 by authors of the Tiki Wiki CMS Groupware Project // // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. // $Id: username.php 66909 2018-07-07 14:48:30Z chibaguy $ function prefs_username_list() { return [ 'username_pattern' => [ 'name' => tra('Username pattern'), 'description' => tr('This regex pattern requires or forbids the use of certain characters for username. For example to add Hebrew use: /^[ \'\-_a-zA-Z0-9@\.א-ת]*$/ or for Chinese use: /^[ \'\-_a-zA-Z0-9@\.\x00-\xff]*$/'), 'type' => 'text', 'size' => 25, 'perspective' => false, 'default' => '/^[ \'\-_a-zA-Z0-9@\.]*$/', ], ]; }
I hope you had at least some fun constructing this string... Now I have to rewrite this in double quotes, because that is the syntax in custom.php...
Thanks
hman
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |