Changeset 4315
- Timestamp:
- 10/04/2006 07:34:55 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.