Commit Graph

50 Commits

Author SHA1 Message Date
Felipe Pena
ff83deb66d - Added arginfo 2008-06-24 12:09:31 +00:00
Felipe Pena
84a8bb038a MFH: New way for check void parameters 2008-03-10 22:15:36 +00:00
Felipe Pena
6a128d5614 MFB: Fixed segfault in filter extension when using callbacks. 2008-02-24 18:41:08 +00:00
Jani Taskinen
d2b77f5cf3 MFH:- Fixed bug in handling arrays which caused the original array being modified too. 2008-02-06 19:06:58 +00:00
Nuno Lopes
00e7f90796 const more 216 bytes (on a 32-bits host) 2008-01-25 20:20:07 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Dmitry Stogov
6c810b0d4c Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:00:48 +00:00
Pierre Joye
2caba30962 - #40947, allow a single filter as argument for filter_var_array 2007-04-04 20:50:26 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36: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
94e3f478d7 Fixed handling of multiple cookies with the same name.
Added support for cookies into run-tests.php
2006-12-09 14:14:29 +00:00
Ilia Alshanetsky
db7dad0ba0 Fixed bug #39763 (magic quotes are applied twice by ext/filter in
parse_str())
2006-12-08 17:50:04 +00:00
Antony Dovgal
b32bf96363 revert the fix for #39763 2006-12-08 17:04:01 +00:00
Antony Dovgal
6b8526efce MFH: fix #39763 (magic quotes are applied twice by ext/filter) 2006-12-07 11:00:08 +00:00
Pierre Joye
33f9ada038 - MFH: invalid filter id should not return unsafe values 2006-12-05 01:24:18 +00:00
Pierre Joye
bff08d46f1 - default filter is not string anymore (in comment)
- WS and error msg sync with head
2006-12-04 21:16:01 +00:00
Pierre Joye
5f2562e905 - MFH: init tmp var 2006-12-04 21:07:13 +00:00
Ilia Alshanetsky
b6bdd44962 Added "default" option that allows a default value to be set for an invalid
or missing value.
2006-12-03 21:27:36 +00:00
Antony Dovgal
c301119fdf MFH: improve the fix and the test 2006-11-13 19:32:58 +00:00
Antony Dovgal
69e0c84522 MFH 2006-11-13 15:00:05 +00:00
Ilia Alshanetsky
f06762b361 Fixed pecl bug #9179 (phpversion("filter") shows wrong version). 2006-11-10 01:08:17 +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
Ilia Alshanetsky
3890ca3fcb Improve parameter parsing 2006-10-09 19:48:13 +00:00
Pierre Joye
7883814424 - wrong definition 2006-10-04 11:48:04 +00:00
Ilia Alshanetsky
c67068b52b Shoehorn myself into the credits. 2006-10-03 22:18:08 +00:00
Ilia Alshanetsky
f876d0bf2a Fixed handling of FILTER_FORCE_ARRAY 2006-10-03 15:34:50 +00:00
Pierre Joye
a7ccaa5ec7 - vi folding, ws 2006-10-03 11:42:23 +00:00
Michael Wallner
e7b80e8368 - fix (ZTS) build 2006-10-03 05:57:52 +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
91c1a54d70 make input_get_args() not modify the original values. 2006-09-19 23:57:48 +00:00
Antony Dovgal
7a5306598a separate zval only when needed (fixes 035.phpt and doesn't affect SAPI filtering) 2006-09-14 15:30:13 +00:00
Derick Rethans
ebbfc21a15 - Make passing filter flags as LONG work again.
- Make super globals filtering work again (as quick workaround).
#- Will merge to head later... need to get things sorted out first.
2006-09-12 16:10:33 +00:00
Pierre Joye
23919d9115 - MFH 2006-08-31 22:34:32 +00:00
Antony Dovgal
5d81cd24c9 MFH 2006-08-31 22:12:10 +00:00
Antony Dovgal
94b3210c38 ext/filter z/Z fixes 2006-08-31 15:17:23 +00:00
Ilia Alshanetsky
23a7a275ed Removed extra byte 2006-08-07 16:53:12 +00:00
Antony Dovgal
60ea962aa3 fix leak in php_sapi_filter() 2006-08-03 19:35:23 +00:00
Ilia Alshanetsky
4c2d752fb1 Fixed a bug in the filter extension that prevented magic_quotes_gpc from
being applied when RAW filter is used.
2006-07-27 18:14:55 +00:00
Antony Dovgal
e5f71c36af MFH: check g_hash for NULL before resetting it 2006-07-25 10:36:19 +00:00
Ilia Alshanetsky
60b2f49762 Fixed compiler warning. 2006-07-24 03:58:41 +00:00
Nuno Lopes
083b13335e use const keyword where possible 2006-07-22 12:49:36 +00:00
Pierre Joye
3ce212ccae - silent compiler warnings (char/unsigned char) 2006-07-22 09:39:24 +00:00
Pierre Joye
0714c1a3d5 - api shake #1, parse_pararameter has to be changed too 2006-07-22 09:09:06 +00:00
Pierre Joye
697f4e1f08 - API Shake up #1, use input type as first argument in input_get_args
(INPUT_GET/POST)
2006-07-22 08:58:03 +00:00
Antony Dovgal
4e8a4a4235 MFH: increase refcount when adding zval to the result array 2006-07-19 07:18:34 +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
SVN Migration
4571221d8e This commit was manufactured by cvs2svn to create branch 'PHP_5_1'. 2005-08-08 23:59:05 +00:00
Rasmus Lerdorf
e56660a1ad Correct handling of the UNSAFE_RAW filter 2005-05-19 21:08:04 +00:00
Rasmus Lerdorf
06aede5b5d Filter skeleton code. No actual filters yet. 2005-02-23 22:41:43 +00:00