Ignore:
Timestamp:
2013/06/28 15:17:18 (11 years ago)
Author:
shutta
Message:

#2277 (エラーチェックのチェック処理の見直し)
r22891 での createParam の修正部分のインデントがおかしいのを修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/SC_CheckError.php

    r22913 r22914  
    12181218    function createParam($value) 
    12191219    { 
    1220          foreach ($value as $val_key => $key) { 
    1221              if ($val_key != 0 && (is_string($key) || is_int($key))) { 
    1222                  if (!is_numeric($key) && preg_match('/^[a-z0-9_]+$/i', $key)) { 
    1223                      if (!isset($this->arrParam[$key])) $this->arrParam[$key] = ''; 
    1224                      if (strlen($this->arrParam[$key]) > 0 
    1225                            && (preg_match('/^[[:alnum:]\-\_]*[\.\/\\\\]*\.\.(\/|\\\\)/',$this->arrParam[$key]) || !preg_match('/\A[^\x00-\x08\x0b\x0c\x0e-\x1f\x7f]+\z/u', $this->arrParam[$key]))) { 
    1226                          $this->arrErr[$value[1]] = '※ ' . $value[0] . 'に禁止された記号の並びまたは制御文字が入っています。<br />'; 
    1227                      } 
    1228                  } else if (preg_match('/[^a-z0-9_]/i', $key)) { 
    1229                      trigger_error('', E_USER_ERROR); 
    1230                  } 
    1231              } 
    1232          } 
     1220        foreach ($value as $val_key => $key) { 
     1221            if ($val_key != 0 && (is_string($key) || is_int($key))) { 
     1222                if (!is_numeric($key) && preg_match('/^[a-z0-9_]+$/i', $key)) { 
     1223                    if (!isset($this->arrParam[$key])) $this->arrParam[$key] = ''; 
     1224                    if (strlen($this->arrParam[$key]) > 0 
     1225                          && (preg_match('/^[[:alnum:]\-\_]*[\.\/\\\\]*\.\.(\/|\\\\)/',$this->arrParam[$key]) || !preg_match('/\A[^\x00-\x08\x0b\x0c\x0e-\x1f\x7f]+\z/u', $this->arrParam[$key]))) { 
     1226                        $this->arrErr[$value[1]] = '※ ' . $value[0] . 'に禁止された記号の並びまたは制御文字が入っています。<br />'; 
     1227                    } 
     1228                } else if (preg_match('/[^a-z0-9_]/i', $key)) { 
     1229                    trigger_error('', E_USER_ERROR); 
     1230                } 
     1231            } 
     1232        } 
    12331233    } 
    12341234 
Note: See TracChangeset for help on using the changeset viewer.