Invalid page URLs caused by truncation

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Invalid page URLs caused by truncation

Post by cmb » Fri Nov 25, 2016 9:37 pm

Hi!

the implementation of the current $cf['uri']['length'] restriction can result in invalid URLs, because we truncate UTF-8 strings with substr() which work on bytes. Using utf8_substr() instead should solve the issue.
Christoph M. Becker – Plugins for CMSimple_XH

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Invalid page URLs caused by truncation

Post by cmb » Sun Dec 11, 2016 4:32 pm

FTR: Fixed with r1686.
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply