Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:lib:core:clean

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

scriptlog:lib:core:clean [2026/09/26 09:09] – admin adminscriptlog:lib:core:clean [2026/09/26 09:16] (current) – admin admin
Line 40: Line 40:
 ======= Docblock Metadata ======= ======= Docblock Metadata =======
  
-  ^ Tag ^ Value ^ +^ Tag ^ Value ^ 
-  | ''@author'' | Ľuboš Beran | +| ''@author'' | Ľuboš Beran | 
-  | ''@license'' | MIT | +| ''@license'' | MIT | 
-  | ''@version'' | 1.2 |+| ''@version'' | 1.2 |
  
 ======= Inheritance ======= ======= Inheritance =======
Line 59: Line 59:
 ======= Methods (2) ======= ======= Methods (2) =======
  
-  ^ Visibility ^ Method ^ Summary ^ Line ^ +^ Visibility ^ Method ^ Summary ^ Line ^ 
-  | public static | ''cleanInput()'' | Function to escape all possible XSS attacks from string. | 54 | +| public static | ''cleanInput()'' | Function to escape all possible XSS attacks from string. | 54 | 
-  | public static | ''cleanArray()'' | Function to clean multi-dimensional array of posted data. | 98 |+| public static | ''cleanArray()'' | Function to clean multi-dimensional array of posted data. | 98 |
  
  
Line 74: Line 74:
 Function to escape all possible XSS attacks from string. Function to escape all possible XSS attacks from string.
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$data'' | ''(untyped)'' | //required// | String to escape | +|  ''$data'' |  ''(untyped)'' |  //required// |  String to escape | 
-  | ''$addslashes'' | ''(untyped)'' | ''false'' | If we want to use "addslashes" |+|  ''$addslashes'' |  ''(untyped)'' |  ''false'' |  If we want to use "addslashes" |
  
 **Returns:** ''(none declared)'' — Clean string **Returns:** ''(none declared)'' — Clean string
Line 93: Line 93:
 Usage: Clean::cleanArray($_POST); (for example) Usage: Clean::cleanArray($_POST); (for example)
  
-  ^ Parameter ^ Type ^ Default ^ Description ^ +^  Parameter ^  Type ^  Default ^  Description ^ 
-  | ''$data'' | ''(untyped)'' | ''array()'' | Array to escape | +|  ''$data'' |  ''(untyped)'' |  ''array()'' |  Array to escape | 
-  | ''$addslashes'' | ''(untyped)'' | ''false'' | Set true, if you can use addslashes function - extended security |+|  ''$addslashes'' |  ''(untyped)'' |  ''false'' |  Set true, if you can use addslashes function - extended security |
  
 **Returns:** ''(none declared)'' — array **Returns:** ''(none declared)'' — array
scriptlog/lib/core/clean.1790413761.txt.gz · Last modified: by admin