Fields that need dedicated server-side handling. Paths are automatically relative to system.

interface ServerSanitizationFields {
    filePathFields: Record<string, string[]>;
    gmOnlyFields: string[];
    htmlFields: string[];
}

Properties

filePathFields: Record<string, string[]>

File path fields that must be cleaned by the server. Each key is a field path and the values are an array of keys in CONST.FILE_CATEGORIES.

gmOnlyFields: string[]

Fields that can only be updated by a GM user.

htmlFields: string[]

HTML fields that must be cleaned by the server, e.g. "description.value"