Skip to content

Spring EL does not allow '\0' characters [SPR-16032] #20581

@spring-projects-issues

Description

@spring-projects-issues

Tony Zeng opened SPR-16032 and commented

Tokenizer class uses the ch == 0 to check whether this expression reaches end, making it is impossible to use \0 in Spring EL like following:

#{#str?.split('\0')}

Affects: 4.3.11, 5.0 GA

Reference URL: #1540 (comment)

Referenced from: commits 03b6828, d0d4421

Backported to: 4.3.12

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions