apply security audit
This commit is contained in:
@@ -28,6 +28,10 @@ class BookStackController {
|
||||
res.status(400).json({ success: false, message: 'Suchbegriff fehlt' });
|
||||
return;
|
||||
}
|
||||
if (query.trim().length > 500) {
|
||||
res.status(400).json({ success: false, message: 'Suchanfrage zu lang' });
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const results = await bookstackService.searchPages(query.trim());
|
||||
res.status(200).json({ success: true, data: results, configured: true });
|
||||
|
||||
Reference in New Issue
Block a user