Docs For Class IDS_Converter

## Class IDS_Converter

Description

PHPIDS specific utility class to convert charsets manually

Note that if you make use of IDS_Converter::runAll(), existing class methods will be executed in the same order as they are implemented in the class tree!

- author: Lars Strojny <lars@strojny.net>
- author: Christian Matthies <ch0012@gmail.com>
- author: Mario Heiderich <mario.heiderich@gmail.com>
- version: Release: $Id:Converter.php 517 2007-09-15 15:04:13Z mario $
- copyright: 2007 The PHPIDS Group
- link: http://php-ids.org/
- license: LGPL

Located in /Converter.php (line 51)

Method Summary
static string convertConcatenations (string $value)
static string convertEntities (string $value)
static string convertFromCommented (string $value)
static string convertFromControlChars (string $value)
static string convertFromJSCharcode (string $value)
static string convertFromJSUnicode (string $value)
static string convertFromNestedBase64 (string $value)
static string convertFromNewLines (string $value)
static string convertFromOutOfRangeChars (string $value)
static string convertFromProprietaryEncodings (string $value, IDS_Monitor $monitor)
static string convertFromSQLHex (string $value)
static string convertFromSQLKeywords (string $value)
static string convertFromUTF7 (string $value)
static string convertFromXML (string $value)
static string convertJSRegexModifiers (string $value)
static string convertQuotes (string $value)
static string runAll (string $value)
static string runCentrifuge (string $value, [IDS_Monitor $monitor = null])
Methods
static method convertConcatenations (line 506)

Converts basic concatenations

- access: public

static string convertConcatenations (string $value)

- string $value: the value to convert

static method convertEntities (line 229)

Converts from hex/dec entities

- access: public

static string convertEntities (string $value)

- string $value: the value to convert

static method convertFromCommented (line 86)

Check for comments and erases them if available

- access: public

static string convertFromCommented (string $value)

- string $value: the value to convert

static method convertFromControlChars (line 321)

Detects nullbytes and controls chars via ord()

- access: public

static string convertFromControlChars (string $value)

- string $value: the value to convert

static method convertFromJSCharcode (line 134)

Checks for common charcode pattern and decodes them

- access: public

static string convertFromJSCharcode (string $value)

- string $value: the value to convert

static method convertFromJSUnicode (line 422)

This method converts JS unicode code points to regular characters

- access: public

static string convertFromJSUnicode (string $value)

- string $value: the value to convert

static method convertFromNestedBase64 (line 359)

This method matches and translates base64 strings and fragments used in data URIs

- access: public

static string convertFromNestedBase64 (string $value)

- string $value: the value to convert

static method convertFromNewLines (line 116)

Strip newlines

- access: public

static string convertFromNewLines (string $value)

- string $value: the value to convert

static method convertFromOutOfRangeChars (line 383)

Detects nullbytes and controls chars via ord()

- access: public

static string convertFromOutOfRangeChars (string $value)

- string $value: the value to convert

static method convertFromProprietaryEncodings (line 558)

This method collects and decodes proprietary encoding types

- access: public

static string convertFromProprietaryEncodings (string $value, IDS_Monitor $monitor)

- string $value: the value to convert
- IDS_Monitor $monitor: the monitor object

static method convertFromSQLHex (line 266)

Converts SQLHEX to plain text

- access: public

static string convertFromSQLHex (string $value)

- string $value: the value to convert

static method convertFromSQLKeywords (line 291)

Converts basic SQL keywords and obfuscations

- access: public

static string convertFromSQLKeywords (string $value)

- string $value: the value to convert

static method convertFromUTF7 (line 449)

Converts relevant UTF-7 tags to UTF-8

- access: public

static string convertFromUTF7 (string $value)

- string $value: the value to convert

static method convertFromXML (line 403)

Strip XML patterns

- access: public

static string convertFromXML (string $value)

- string $value: the value to convert

static method convertJSRegexModifiers (line 214)

Eliminate JS regex modifiers

- access: public

static string convertJSRegexModifiers (string $value)

- string $value: the value to convert

static method convertQuotes (line 249)

Normalize quotes

- access: public

static string convertQuotes (string $value)

- string $value: the value to convert

static method runAll (line 65)

Runs all converter functions

Note that if you make use of IDS_Converter::runAll(), existing class methods will be executed in the same order as they are implemented in the class tree!

- access: public

static string runAll (string $value)

- string $value: the value to convert

static method runCentrifuge (line 603)

This method is the centrifuge prototype

- access: public

static string runCentrifuge (string $value, [IDS_Monitor $monitor = null])

- string $value: the value to convert
- IDS_Monitor $monitor: the monitor object

Documentation generated on Mon, 22 Dec 2008 13:36:41 +0100 by phpDocumentor 1.4.2