Revision 364
Added by stefan about 19 years ago
| class.wb.php | ||
|---|---|---|
| 116 | 116 |
} |
| 117 | 117 |
} |
| 118 | 118 |
|
| 119 |
// Get POST data and escape it |
|
| 120 |
function get_post_escaped($field) {
|
|
| 121 |
$result = $this->get_post($field); |
|
| 122 |
return (is_null($result)) ? null : $this->add_slashes($result); |
|
| 123 |
} |
|
| 124 |
|
|
| 119 | 125 |
// Get GET data |
| 120 | 126 |
function get_get($field) {
|
| 121 | 127 |
if(isset($_GET[$field])) {
|
Also available in: Unified diff
Added get_post_escaped to wb class which automatically calls add_slashes on get_post output and used it in form/save_field.php