|
@@ -1759,7 +1759,7 @@ Cards.helpers({
|
|
// Sanitize title on client side as well
|
|
// Sanitize title on client side as well
|
|
let sanitizedTitle = title;
|
|
let sanitizedTitle = title;
|
|
if (typeof title === 'string') {
|
|
if (typeof title === 'string') {
|
|
- const { sanitizeTitle } = require('/server/lib/inputSanitizer');
|
|
|
|
|
|
+ const { sanitizeTitle } = require('../server/lib/inputSanitizer');
|
|
sanitizedTitle = sanitizeTitle(title);
|
|
sanitizedTitle = sanitizeTitle(title);
|
|
if (process.env.DEBUG === 'true' && sanitizedTitle !== title) {
|
|
if (process.env.DEBUG === 'true' && sanitizedTitle !== title) {
|
|
console.warn('Client-side sanitized card title:', title, '->', sanitizedTitle);
|
|
console.warn('Client-side sanitized card title:', title, '->', sanitizedTitle);
|
|
@@ -3575,7 +3575,7 @@ JsonRoutes.add('GET', '/api/boards/:boardId/cards_count', function(
|
|
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
|
Authentication.checkBoardAccess(req.userId, paramBoardId);
|
|
|
|
|
|
if (req.body.title) {
|
|
if (req.body.title) {
|
|
- const { sanitizeTitle } = require('/server/lib/inputSanitizer');
|
|
|
|
|
|
+ const { sanitizeTitle } = require('../server/lib/inputSanitizer');
|
|
const newTitle = sanitizeTitle(req.body.title);
|
|
const newTitle = sanitizeTitle(req.body.title);
|
|
|
|
|
|
if (process.env.DEBUG === 'true' && newTitle !== req.body.title) {
|
|
if (process.env.DEBUG === 'true' && newTitle !== req.body.title) {
|