Changeset 22913
- Timestamp:
- 2013/06/28 15:11:49 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/SC_CheckError.php
r22912 r22913 114 114 return; 115 115 } 116 $this->createParam($value);116 // $this->createParam($value); 117 117 if (strlen($this->arrParam[$value[0]]) == 0) { 118 118 $this->arrErr[$value[0]] = '※ ' . $value[0] . 'が入力されていません。<br />'; … … 198 198 return; 199 199 } 200 $this->createParam($value);200 // $this->createParam($value); 201 201 // 文字数の取得 202 202 if ($this->arrParam[$value[2]] !== $this->arrParam[$value[3]]) { … … 217 217 return; 218 218 } 219 $this->createParam($value);219 // $this->createParam($value); 220 220 // 文字数の取得 221 221 if ($this->arrParam[$value[2]] == $this->arrParam[$value[3]]) { … … 236 236 return; 237 237 } 238 $this->createParam($value);238 // $this->createParam($value); 239 239 // 文字数の取得 240 240 if ($this->arrParam[$value[2]] != '' && $this->arrParam[$value[3]] != '' && ($this->arrParam[$value[2]] > $this->arrParam[$value[3]])) { … … 979 979 return; 980 980 } 981 $this->createParam($value);981 // $this->createParam($value); 982 982 if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0 || strlen($this->arrParam[$value[4]]) > 0) && ! checkdate($this->arrParam[$value[3]], $this->arrParam[$value[4]], $this->arrParam[$value[2]])) { 983 983 $this->arrErr[$value[2]] = '※ ' . $value[0] . 'を正しく指定してください。<br />'; … … 1028 1028 return; 1029 1029 } 1030 $this->createParam($value);1030 // $this->createParam($value); 1031 1031 if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0 || strlen($this->arrParam[$value[4]]) > 0 || strlen($this->arrParam[$value[5]]) > 0) && ! checkdate($this->arrParam[$value[3]], $this->arrParam[$value[4]], $this->arrParam[$value[2]])) { 1032 1032 $this->arrErr[$value[2]] = '※ ' . $value[0] . 'を正しく指定してください。<br />'; … … 1070 1070 return; 1071 1071 } 1072 $this->createParam($value);1072 // $this->createParam($value); 1073 1073 if ((strlen($this->arrParam[$value[2]]) > 0 || strlen($this->arrParam[$value[3]]) > 0) && ! checkdate($this->arrParam[$value[3]], 1, $this->arrParam[$value[2]])) { 1074 1074 $this->arrErr[$value[2]] = '※ ' . $value[0] . 'を正しく指定してください。<br />'; … … 1187 1187 return; 1188 1188 } 1189 $this->createParam($value);1189 // $this->createParam($value); 1190 1190 if ($this->evalCheck($value[1]) === false) { 1191 1191 $this->arrErr[$value[0]] = '※ ' . $value[0] . ' の形式が不正です。<br />'; … … 1218 1218 function createParam($value) 1219 1219 { 1220 foreach ($value as $key) { 1221 if (is_string($key) || is_int($key)) { 1222 if (!isset($this->arrParam[$key])) $this->arrParam[$key] = ''; 1223 } 1224 } 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 } 1225 1233 } 1226 1234
Note: See TracChangeset
for help on using the changeset viewer.