Changeset 22914
- Timestamp:
- 2013/06/28 15:17:18 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/class/SC_CheckError.php
r22913 r22914 1218 1218 function createParam($value) 1219 1219 { 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 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 } 1233 1233 } 1234 1234
Note: See TracChangeset
for help on using the changeset viewer.