Jump to content

Length of $input->urlSegment() limited to 128 characters


Johannes Weberhofer
 Share

Recommended Posts

Welcome to the forums @Johannes Weberhofer

It looks like it isn't possible to increase the allowed length of a URL segment. This is because when a URL segment is set, the value is passed through $sanitizer->name() or $sanitizer->pageNameUTF8() depending on if $config->pageNameCharset = 'UTF8' is set.

For $sanitizer->name() at least (I had some trouble debugging $sanitizer->pageNameUTF8)  the maxLength option defaults to 128, and although that method allows a custom maxLength to be used there is no option to specify this for URL segments.

I can't see why a URL segment needs to be limited to 128 characters and it would be nice to have the ability to set a higher max length. Maybe you could open a feature request at GitHub?

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...