diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-08-15 00:13:05 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-08-15 00:13:05 +0200 |
commit | cbde3f032de0f02fb28a5502a32c30626119716e (patch) | |
tree | 5cf606e4f488fefef7c6f668ab9915144fc3e6e6 /system/libraries/Input.php | |
parent | 5f725870198dfa765ff455f212be97684a8f8cfb (diff) |
changed entity standardization to require at least two characters after an ampersand before forcing a semi-colon
Diffstat (limited to 'system/libraries/Input.php')
-rw-r--r-- | system/libraries/Input.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Input.php b/system/libraries/Input.php index 24c6c1967..ff1dd9b15 100644 --- a/system/libraries/Input.php +++ b/system/libraries/Input.php @@ -547,7 +547,7 @@ class CI_Input { * the conversion of entities to ASCII later.
*
*/
- $str = preg_replace('#(&\#?[0-9a-z]+)[\x00-\x20]*;?#i', "\\1;", $str);
+ $str = preg_replace('#(&\#?[0-9a-z]{2,})[\x00-\x20]*;?#i', "\\1;", $str);
/*
* Validate UTF16 two byte encoding (x00)
|