Just to be sure, never render non-digit token references

master
Richard van Velzen 2011-12-31 11:32:23 +01:00
parent 9715a068e9
commit f4a75c0365
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ function lime_token_reference_callback($foo) {
if ($foo[1] === '$') {
// always
return '$result';
} elseif (!ctype_digit($foo[1])) {
return '$' . $foo[1];
}
return lime_token_reference($foo[1] - 1);