danieleteti/delphimvcframework

new URL_MAPPED_PARAMS_ALLOWED_CHARS break the code

landrix opened this issue · 0 comments

this change

URL_MAPPED_PARAMS_ALLOWED_CHARS = ' àèéùòì''"@\[\]\{\}\(\)\=;&#\.:!\_\/,%\w\d\x2D\x3A';

break the code

i have 2 endpoints

[MVCProduces(TMVCMediaType.APPLICATION_JSON)]
[MVCHttpMethod([httpGET])]
[MVCPath('/($projectid)')]
procedure GetProject(CTX: TWebContext);

[MVCProduces(TMVCMediaType.APPLICATION_JSON)]
[MVCHttpMethod([httpGET])]
[MVCPath('/($projectid)/pictures/($imageuuid)')]
procedure GetImage(CTX: TWebContext);

if i call /($projectid)/pictures/($imageuuid), i will be routed to /($projectid) and get

/($projectid)/pictures/($imageuuid) as parameter