Add comment as requested
This commit is contained in:
parent
1e0633edfc
commit
a0ec0fe402
@ -108,6 +108,8 @@ class Escaper
|
|||||||
*/
|
*/
|
||||||
private static function isValueRequiresSingleQuoting($value)
|
private static function isValueRequiresSingleQuoting($value)
|
||||||
{
|
{
|
||||||
|
// Note that whilst 'y' and 'n' are not supported as valid Booleans,
|
||||||
|
// they are escaped here for interoperability.
|
||||||
return in_array(strtolower($value), array('null', '~', 'true', 'false', 'y', 'n', 'yes', 'no', 'on', 'off'));
|
return in_array(strtolower($value), array('null', '~', 'true', 'false', 'y', 'n', 'yes', 'no', 'on', 'off'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user