Changeset 1056 for trunk/htdocs/common/common.php
- Timestamp:
- 2012-07-27T09:40:43+02:00 (11 months ago)
- File:
-
- 1 edited
-
trunk/htdocs/common/common.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/common/common.php
r1053 r1056 67 67 function xcache_validateFileName($name) 68 68 { 69 if (!preg_match('!^[a-zA-Z0-9._-]+$!', $name)) { 70 var_dump($name); 71 } 69 72 return preg_match('!^[a-zA-Z0-9._-]+$!', $name); 70 73 } … … 81 84 $lang = $langMap[$lang]; 82 85 } 86 else if (!xcache_validateFileName($lang)) { 87 return null; 88 } 89 83 90 $file = "$name-$lang.lang.php"; 84 if ( xcache_validateFileName($file) &&file_exists($file)) {91 if (file_exists($file)) { 85 92 return $file; 86 93 } … … 236 243 } 237 244 238 include(get_language_file(" common"));245 include(get_language_file("../common/common")); 239 246 240 247 $modules = array();
Note: See TracChangeset
for help on using the changeset viewer.

