Commit Graph

23 Commits

Author SHA1 Message Date
Ilia Alshanetsky
cd32cab680 Fixed ext/filter Email Validation Vulnerability
(MOPB-24 by Stefan Esser)
2007-05-03 23:38:27 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
6e0af2f4d5 Simplify code and change strchr() to memchr() 2006-12-31 22:47:13 +00:00
Ilia Alshanetsky
790b0b9edf Fixes test #50 2006-12-30 01:56:18 +00:00
Dmitry Stogov
67583e7aa5 Code review:
. fixed integer overflow
  . fixed buffer overflow/underflow
  . added more strict IP validation
  . reimplemented float number validation
2006-12-26 09:16:25 +00:00
Ilia Alshanetsky
87ffae250c fixed ZTS build 2006-12-20 19:48:12 +00:00
Ilia Alshanetsky
ea491dba64 Fixed bug #39898 (FILTER_VALIDATE_URL validates \r\n\t etc). 2006-12-20 19:20:01 +00:00
Derick Rethans
a9d0abf82c - Fixed the validate email filter so that the letter "v" can also be used in
the user part of the email address. (Derick)
2006-12-20 14:39:01 +00:00
Ilia Alshanetsky
a938d8e386 Fixed bugs with trimming of spaces 2006-12-18 14:56:40 +00:00
Hannes Magnusson
93a606a192 Fix build 2006-12-17 03:26:04 +00:00
Ilia Alshanetsky
b75d079c89 Fixed bug #39846 (Invalid IPv4 treated as valid). 2006-12-16 21:48:05 +00:00
Ilia Alshanetsky
c5d68cd1df Unify handling of return values on validation failure and var not found 2006-10-17 15:26:14 +00:00
Derick Rethans
0a3b663a1b - MFH: Change validating filters to return "null" on failure so that they can be
distinguised from the value "false" which might be valid as well.
2006-10-11 14:49:13 +00:00
Ilia Alshanetsky
80cecdb41f Refactor the filter extension
- Cleanup API
	- Added handling for circular references
	- Renamed functions.

# Original patch by Pierre
2006-10-03 02:16:53 +00:00
Ilia Alshanetsky
6e2add04ea Make float filter handle things like 02.324 properly 2006-09-14 17:47:00 +00:00
Pierre Joye
72820abd7b - MFH: pecl bug #8316,
empty strings are not int or float, return false (due to popular demand)
2006-08-31 18:29:29 +00:00
Pierre Joye
50e9994b2c - clean the auto trim (behaves like php_trim now)
- simplifies bool
- fix octal parsing
- boost int/hex/octal validate_int
2006-08-31 15:50:56 +00:00
Pierre Joye
5317b7050b - #8315, flaot is affected too 2006-07-29 12:43:21 +00:00
Pierre Joye
ab5c3f184b - #8315, NULL character stops the validation 2006-07-29 01:26:55 +00:00
Nuno Lopes
083b13335e use const keyword where possible 2006-07-22 12:49:36 +00:00
Pierre Joye
d6c2c283ed - make boolean logical filter works like int/float and php itself
- add more tests for boolean input
2006-07-20 12:58:13 +00:00
Antony Dovgal
f61572e645 fix compile warnings 2006-07-19 06:57:21 +00:00
SVN Migration
1b0a789ab9 This commit was manufactured by cvs2svn to create branch 'PHP_5_2'. 2006-07-05 10:12:43 +00:00