Changeset 6302
- Timestamp:
- 08/19/06 05:57:37 (2 years ago)
- Files:
-
- wp-stats/trunk/stats/stats.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-stats/trunk/stats/stats.php
r6295 r6302 450 450 ### Function: Snippet Characters 451 451 function snippet_chars($text, $length = 0) { 452 $text = htmlspecialchars_decode($text); 452 453 if (strlen($text) > $length){ 453 return substr($text,0,$length).'...';454 return htmlspecialchars(substr($text,0,$length)).'...'; 454 455 } else { 455 return $text;456 return htmlspecialchars($text); 456 457 } 458 } 459 460 461 ### Function: HTML Special Chars Decode 462 if (!function_exists('htmlspecialchars_decode')) { 463 function htmlspecialchars_decode($text) { 464 return strtr($text, array_flip(get_html_translation_table(HTML_SPECIALCHARS))); 465 } 457 466 } 458 467 … … 490 499 $page = intval($_GET['stats_page']); 491 500 $temp_stats = ''; 501 $temp_post = $post; 492 502 493 503 // Default wp-stats.php Page … … 708 718 $cache_post_title = $post_title; 709 719 } 710 $post = null;711 720 } else { 712 721 $temp_stats .= "<p>$comment_author has not made any comments yet.</p>\n"; … … 762 771 $temp_stats .= '<p><b>««</b> <a href="'.$stats_url.'">Back To Stats Page</a></p>'."\n"; 763 772 } // End If 773 774 // Assign Back $post 775 $post = $temp_post; 764 776 765 777 // Output Stats Page
