php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
sanitizing_filters.c File Reference
#include "php_filter.h"
#include "filter_private.h"
#include "ext/standard/php_string.h"
#include "ext/standard/html.h"
#include "zend_smart_str.h"

Go to the source code of this file.

Macros

#define LOWALPHA   "abcdefghijklmnopqrstuvwxyz"
 
#define HIALPHA   "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 
#define DIGIT   "0123456789"
 
#define DEFAULT_URL_ENCODE   LOWALPHA HIALPHA DIGIT "-._"
 
#define SAFE   "$-_.+"
 
#define EXTRA   "!*'(),"
 
#define NATIONAL   "{}|\\^~[]`"
 
#define PUNCTUATION   "<>#%\""
 
#define RESERVED   ";/?:@&="
 

Typedefs

typedef unsigned long filter_map[256]
 

Functions

void php_filter_string (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_encoded (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_special_chars (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_full_special_chars (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_unsafe_raw (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_email (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_url (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_number_int (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_number_float (PHP_INPUT_FILTER_PARAM_DECL)
 
void php_filter_add_slashes (PHP_INPUT_FILTER_PARAM_DECL)
 

Macro Definition Documentation

◆ DEFAULT_URL_ENCODE

#define DEFAULT_URL_ENCODE   LOWALPHA HIALPHA DIGIT "-._"

Definition at line 61 of file sanitizing_filters.c.

◆ DIGIT

#define DIGIT   "0123456789"

Definition at line 59 of file sanitizing_filters.c.

◆ EXTRA

#define EXTRA   "!*'(),"

Definition at line 292 of file sanitizing_filters.c.

◆ HIALPHA

#define HIALPHA   "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

Definition at line 58 of file sanitizing_filters.c.

◆ LOWALPHA

#define LOWALPHA   "abcdefghijklmnopqrstuvwxyz"

Definition at line 57 of file sanitizing_filters.c.

◆ NATIONAL

#define NATIONAL   "{}|\\^~[]`"

Definition at line 293 of file sanitizing_filters.c.

◆ PUNCTUATION

#define PUNCTUATION   "<>#%\""

Definition at line 294 of file sanitizing_filters.c.

◆ RESERVED

#define RESERVED   ";/?:@&="

Definition at line 295 of file sanitizing_filters.c.

◆ SAFE

#define SAFE   "$-_.+"

Definition at line 291 of file sanitizing_filters.c.

Typedef Documentation

◆ filter_map

typedef unsigned long filter_map[256]

Definition at line 24 of file sanitizing_filters.c.

Function Documentation

◆ php_filter_add_slashes()

void php_filter_add_slashes ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 361 of file sanitizing_filters.c.

◆ php_filter_email()

void php_filter_email ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 297 of file sanitizing_filters.c.

◆ php_filter_encoded()

void php_filter_encoded ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 214 of file sanitizing_filters.c.

◆ php_filter_full_special_chars()

void php_filter_full_special_chars ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 245 of file sanitizing_filters.c.

◆ php_filter_number_float()

void php_filter_number_float ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 337 of file sanitizing_filters.c.

◆ php_filter_number_int()

void php_filter_number_int ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 324 of file sanitizing_filters.c.

◆ php_filter_special_chars()

void php_filter_special_chars ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 224 of file sanitizing_filters.c.

◆ php_filter_string()

void php_filter_string ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 170 of file sanitizing_filters.c.

◆ php_filter_unsafe_raw()

void php_filter_unsafe_raw ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 264 of file sanitizing_filters.c.

◆ php_filter_url()

void php_filter_url ( PHP_INPUT_FILTER_PARAM_DECL )

Definition at line 310 of file sanitizing_filters.c.