Changeset 4315
- Timestamp:
- 10/04/06 07:34:55 (2 years ago)
- Files:
-
- branches/2.0/wp-admin/templates.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.0/wp-admin/templates.php
r3937 r4315 72 72 update_recently_edited($file); 73 73 74 if ( !is_file($real_file))74 if ( !is_file($real_file) ) { 75 75 $error = true; 76 77 if (!$error) { 76 } else { 78 77 $f = @ fopen($real_file, 'r'); 79 78 if ( $f ) { 80 $content = fread($f, filesize($real_file)); 81 $content = htmlspecialchars($content); 79 if ( filesize($real_file ) > 0 ) { 80 $content = fread($f, filesize($real_file)); 81 $content = htmlspecialchars($content); 82 } else { 83 $content = ''; 84 } 82 85 } else { 83 86 $error = true;
