- Timestamp:
- 11/14/08 21:53:32 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fCore.php
r388 r394 Hide Line Numbers 510 510 static public function expose($data) 511 511 { 512 echo '<pre class="exposed">' . htmlspecialchars((string) self::dump($data) ) . '</pre>';512 echo '<pre class="exposed">' . htmlspecialchars((string) self::dump($data), ENT_QUOTES, 'UTF-8') . '</pre>'; 513 513 } 514 514 fHTML.php
r316 r394 Hide Line Numbers 63 63 static public function decode($content) 64 64 { 65 return html_entity_decode($content, ENT_ COMPAT, 'UTF-8');65 return html_entity_decode($content, ENT_QUOTES, 'UTF-8'); 66 66 } 67 67 … … 75 75 static public function encode($content) 76 76 { 77 return htmlentities($content, ENT_ COMPAT, 'UTF-8');77 return htmlentities($content, ENT_QUOTES, 'UTF-8'); 78 78 } 79 79 … … 161 161 // For each chunk of text, make sure it is converted to entities 162 162 foreach($text_matches as $key => $value) { 163 $text_matches[$key] = htmlspecialchars($value );163 $text_matches[$key] = htmlspecialchars($value, ENT_QUOTES, 'UTF-8'); 164 164 } 165 165 fPrintableException.php
r391 r394 Hide Line Numbers 265 265 $no_block_html = strip_tags($content, $inline_tags) == $content; 266 266 267 $content = html_entity_decode($content, ENT_ COMPAT, 'UTF-8');267 $content = html_entity_decode($content, ENT_QUOTES, 'UTF-8'); 268 268 269 269 // This code ensures the output is properly encoded for display in (X)HTML, extracted from fHTML to reduce dependencies … … 273 273 274 274 foreach($text_matches as $key => $value) { 275 $value = htmlspecialchars($value );275 $value = htmlspecialchars($value, ENT_QUOTES, 'UTF-8'); 276 276 } 277 277 fXML.php
r321 r394 Hide Line Numbers 31 31 static public function encode($content) 32 32 { 33 return htmlspecialchars(html_entity_decode($content, ENT_ COMPAT, 'UTF-8'));33 return htmlspecialchars(html_entity_decode($content, ENT_QUOTES, 'UTF-8'), ENT_QUOTES, 'UTF-8'); 34 34 } 35 35
