Changeset 1056 in svn for trunk/htdocs/common/common.php


Ignore:
Timestamp:
2012-07-27T09:40:43+02:00 (3 years ago)
Author:
Xuefer
Message:

htdocs: updated language

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/common/common.php

    r1053 r1056  
    6767function xcache_validateFileName($name)
    6868{
     69    if (!preg_match('!^[a-zA-Z0-9._-]+$!', $name)) {
     70        var_dump($name);
     71    }
    6972    return preg_match('!^[a-zA-Z0-9._-]+$!', $name);
    7073}
     
    8184        $lang = $langMap[$lang];
    8285    }
     86    else if (!xcache_validateFileName($lang)) {
     87        return null;
     88    }
     89
    8390    $file = "$name-$lang.lang.php";
    84     if (xcache_validateFileName($file) && file_exists($file)) {
     91    if (file_exists($file)) {
    8592        return $file;
    8693    }
     
    236243}
    237244
    238 include(get_language_file("common"));
     245include(get_language_file("../common/common"));
    239246
    240247$modules = array();
Note: See TracChangeset for help on using the changeset viewer.