Jump to content

Encoded String not recognized as Url segment


helmut2509
 Share

Recommended Posts

Hello,

in one of my templates I use url segments.

As allowed url segments I have:

regex:[0-9]+
regex:[0-9]+/.*$

regex:[0-9]+/[^"]+

When I use an url with the second/third pattern, it works fine as long as there are only letters and digits.

But when the url contains a '+' or '%' (urlencode!)  I get a blank page.

.../1234/abcd > works fine

../1234/abcd+5 > outputs a blank page.

../1234/abcd%5 > outputs message: Bad RequestYour browser sent a request that this server could not understand.

 

any suggestions?

EDIT: I just found this from Ryan:

https://processwire.com/talk/topic/580-encrypted-urlsegment/

In addition to the expected forward slash to separate directories, ProcessWire only accepts these [ASCII] characters in it's URLs:

abcdefghijklmnopqrstuvwxyz 0123456789 . - _ 
  • Like 1
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...