Changeset 783
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r765 r783 13 13 1.3.2 2011-??-?? 14 14 ======== 15 * avoid possible filename injection in admin page 15 16 * adds 30 seconds timeout to "compiling" flag 16 17 * decompiler: improves decompiling -
trunk/NEWS
r765 r783 4 4 1.3.2 2011-??-?? 5 5 ======== 6 * admin page security fix 6 7 * adds 30 seconds timeout to "compiling" flag 7 8 * improves decompiling -
trunk/admin/common.php
r782 r783 1 1 <?php 2 3 function xcache_validateFileName($name) 4 { 5 return preg_match('!^[a-zA-Z0-9._-]+$!', $name); 6 } 2 7 3 8 function get_language_file_ex($name, $l, $s) … … 16 21 $l = $lmap[$l]; 17 22 } 18 if (file_exists($file = "$name-$l-$s.lang.php")) { 23 $file = "$name-$l-$s.lang.php"; 24 if (xcache_validateFileName($file) && file_exists($file)) { 19 25 return $file; 20 26 } 21 27 if (isset($smap[$s])) { 22 28 $s = $smap[$s]; 23 if (file_exists($file = "$name-$l-$s.lang.php")) { 29 $file = "$name-$l-$s.lang.php"; 30 if (xcache_validateFileName($file) && file_exists($file)) { 24 31 return $file; 25 32 } 26 33 } 27 if (file_exists($file = "$name-$l.lang.php")) { 34 $file = "$name-$l.lang.php"; 35 if (xcache_validateFileName($file) && file_exists($file)) { 28 36 return $file; 29 37 }
Note: See TracChangeset
for help on using the changeset viewer.

