Skip to content

Commit 032eb8f

Browse files
committed
Limit description and title maxlength to avoid abuse
1 parent 003b40d commit 032eb8f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/ai/content-planner/user-interface/get-outline-route.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,14 @@ public function register_routes() {
145145
'type' => 'object',
146146
'properties' => [
147147
'title' => [
148-
'type' => 'string',
149-
'required' => true,
148+
'type' => 'string',
149+
'required' => true,
150+
'maxLength' => 500,
150151
],
151152
'description' => [
152-
'type' => 'string',
153-
'required' => true,
153+
'type' => 'string',
154+
'required' => true,
155+
'maxLength' => 1000,
154156
],
155157
],
156158
'additionalProperties' => false,

0 commit comments

Comments
 (0)