Project

General

Profile

« Previous | Next » 

Revision 364

Added by stefan over 18 years ago

Added get_post_escaped to wb class which automatically calls add_slashes on get_post output and used it in form/save_field.php

View differences:

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