It would be easier to translate the strings if this phrase isn't in half of all the module strings. We can easily check if -raw is in the token name and add the string ourselves in token_get_list(). Any strings that are raw and and don't use the -raw suffix will need to add their own warnings.

CommentFileSizeAuthor
#1 819110-token-raw-warning.patch10.15 KBdave reid

Comments

dave reid’s picture

Status: Active » Needs review
StatusFileSize
new10.15 KB

Attached patch checks if the token ends with -raw, doesn't already contain the phrase 'raw user input', and if it's not a UNIX timestamp [date]-raw token which should not have a warning put on it.

dave reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.