Avatar

When will be the new version 2.4? (Bugs)

by Solis ⌂, Urumqi, Xinjiang, China 中国新疆乌鲁木齐, Wednesday, January 18, 2017, 13:09 (2649 days ago)

1. If you will launch the new version 2.4 recently, I can wait for it. Otherwise, now I use the 2.3.7.

2. In the 2.3.7, when I use a name in Chinese, Sometimes the system say:

The user name contains invalid characters

Could you tell me, how can I solve this problem?

My English is poor. I hope that you can understand me. Thanks for your My Little Forum, which is the best I saw.

Avatar

When will be the new version 2.4?

by Auge ⌂, Thursday, January 19, 2017, 07:50 (2648 days ago) @ Solis

1. If you will launch the new version 2.4 recently, I can wait for it. Otherwise, now I use the 2.3.7.

With the last changes I ran into a few bugs. Thatswhy and because of the real life, christmas and the turn of the year three weeks ago the work stagnated.

2. In the 2.3.7, when I use a name in Chinese, Sometimes the system say:

The user name contains invalid characters

Sorry, but how often you want to report this bug? It's solved for the new version. We told it implicit in Milo's entry from october 2016 and explicit in my entry from november 2016. This should be enough, shouldn't it?

Could you tell me, how can I solve this problem?

Search for the function contains_special_characters in the file include/functions.inc.php (anywhere between the lines 2500 and 2700). Replace the line

  if(preg_match("/([[:cntrl:]]|\255)/", $string)) return true; // control characters and soft hyphen

with

  if(preg_match("/([[:cntrl:]]|\p{Cf})/u", $string)) return true; // control characters and soft hyphen

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!

Avatar

When will be the new version 2.4?

by Solis ⌂, Urumqi, Xinjiang, China 中国新疆乌鲁木齐, Thursday, January 19, 2017, 08:54 (2648 days ago) @ Auge

thank you very very much!

[image]

RSS Feed of thread