Lines Matching refs:value
145 * If an empy value is passed, the header is removed
148 * @param string|string[] $value the value of the header
151 public function setHeader($header, $value, $clean = true)
156 $value = preg_replace('/[^a-zA-Z0-9_ \-\.\+\@<>]+/', '', $value);
159 // empty value deletes
160 if (is_array($value)) {
161 $value = array_map('trim', $value);
162 $value = array_filter($value);
163 if (!$value) $value = '';
165 $value = trim($value);
167 if ($value === '') {
170 $this->headers[$header] = $value;
227 foreach ($textrep as $key => $value) {
229 if (media_isexternal($value)) {
230 $htmlrep[$key] = '<a href="' . hsc($value) . '">' . hsc($value) . '</a>';
232 $htmlrep[$key] = hsc($value);