Commit 49f17d59 authored by nanahira's avatar nanahira

fix length control

parent dd882e3f
Pipeline #15070 passed with stages
in 2 minutes and 48 seconds
...@@ -55,7 +55,7 @@ export class AppController { ...@@ -55,7 +55,7 @@ export class AppController {
if (size < 8 || size > 1000) { if (size < 8 || size > 1000) {
throw new BlankReturnMessageDto(400, 'Invalid size').toException(); throw new BlankReturnMessageDto(400, 'Invalid size').toException();
} }
if (url.length > 247) { if (url.length > 255 - this.urlGetPrefix.length) {
throw new BlankReturnMessageDto(400, 'Invalid url').toException(); throw new BlankReturnMessageDto(400, 'Invalid url').toException();
} }
const buffer = await this.appService.getResizedImage( const buffer = await this.appService.getResizedImage(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment