Commit Graph

30 Commits

Author SHA1 Message Date
Frank M. Kromann
c443a8d20b Allow the extension to be compiled as shared object on win32 2005-12-08 19:43:53 +00:00
Antony Dovgal
a42b9d7a0f fix CS 2005-12-06 15:20:53 +00:00
Antony Dovgal
a317347723 accept strings and arrays as callback name 2005-12-06 15:16:33 +00:00
foobar
a05e8e335d - nuke php3 legacy 2005-12-06 02:10:00 +00:00
foobar
1b716123f2 - No need for extra strlen() call here 2005-11-23 15:51:45 +00:00
foobar
754d011d8d fix leaks 2005-11-23 15:50:27 +00:00
foobar
f94c2783b4 - Fixed PECL bug #6021: parse_str() returns empty array when filter enabled 2005-11-23 00:20:16 +00:00
Derick Rethans
168db42521 - Ready 0.9.3. 2005-11-18 09:56:11 +00:00
Derick Rethans
ccbf79462f - Fixed default so that it does not even encode quotes. 2005-11-18 09:17:59 +00:00
foobar
1c41c53e39 - Filters may behave differently with empty string so pass it on 2005-11-17 00:49:48 +00:00
foobar
2f42d7df03 - Fix PECL bug #5963 2005-11-17 00:03:03 +00:00
foobar
0907893b2b - Prepare for including in PHP core 2005-11-15 11:55:28 +00:00
Derick Rethans
04d1624be9 - Make it compile when inside the PHP source tree. 2005-10-26 15:05:22 +00:00
Derick Rethans
35a0866735 - Allow settable default flags for the filters. 2005-10-26 14:37:08 +00:00
Derick Rethans
a3997030fa - Implemented this like the comment says, otherwise it will ofcourse modify
both instances of this variable name...
2005-10-26 13:20:52 +00:00
Derick Rethans
c07f4ff8b6 - More ZTS fixes. 2005-10-26 07:56:16 +00:00
Derick Rethans
9f28be05e3 - Fixed ZTS mode
- Added input_name_to_filter() function.
2005-10-26 07:48:51 +00:00
Derick Rethans
bc6dba17e4 - Fixed segfault in case an empty parameter was passed. 2005-10-25 07:54:13 +00:00
Derick Rethans
17bc1d09e8 - Implemented user level data filter.
- Fixed a memory leak.
2005-10-04 14:47:30 +00:00
Derick Rethans
6f9c13f222 - Add a function that returns whether a specific input variable exists or not. 2005-10-04 13:42:52 +00:00
Derick Rethans
01520328e6 - Implemented input_filters_list() function to return all supported filters. 2005-09-28 09:10:45 +00:00
Derick Rethans
c319c60125 - Implement validate_ip filter for IPv4. 2005-09-26 13:45:38 +00:00
Derick Rethans
12945df662 - Implemented validate_url filter. 2005-09-26 06:57:05 +00:00
Derick Rethans
9000038bd2 - Changed variable handling code so that filter flags work for the unsafe_raw
filter.
- Added better support for \0 characters.
- Added utility function to HTML encode low/high characters.
- Added support for encode low/high flags to the string and special_chars
  filter.
- Added support for strip and encoding flags to the unsafe_raw filter.
2005-09-22 14:32:28 +00:00
Derick Rethans
66e3c106d1 - Removed ALLOW_SIGN filter flag, as this will always be allowed.
- Added ALLOW_SCIENTIFIC flag for the FS_NUMBER_FLOAT filter.
- Implemented string, encoded, special_chars, unsafe_raw, email, url,
  number_int, number_float and magic_quotes filters.
2005-09-22 10:06:57 +00:00
Derick Rethans
bc0308b2e4 - Moved constants to private .h file
- Added comments to filter stubs as per discussion with Ilia
- Renamed regexp to validate_regexp filter
- Added stubs for validate_url, validate_email and validate_ip filters.
- Implemented "string" (stripped) filter
2005-09-20 15:01:42 +00:00
Rasmus Lerdorf
868c4b72df Add FS_STRIPPED alias 2005-09-15 03:16:09 +00:00
Derick Rethans
8774e8e1aa - Updated the framework, cleaned up some code.
#- Basically the only real thing left is the body for the filters.
2005-09-06 18:46:37 +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