Changeset 22874


Ignore:
Timestamp:
2013/06/24 10:27:34 (7 years ago)
Author:
undertree
Message:

CSV出力、高度な設定で、禁止SQLキーワードが入力キーワードと完全一致でないとヒットしないよう修正

File:
1 edited

Legend:

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

    r22796 r22874  
    11161116        $this->createParam($value); 
    11171117        $targetStr     = $this->arrParam[$value[1]]; 
     1118 
    11181119        $prohibitedStr = str_replace(array('|', '/'), array('\|', '\/'), $value[2]); 
    1119  
    1120         $pattern = '/' . join('|', $prohibitedStr) . '/i'; 
     1120        $pattern = '/' . join('\b|\b', $prohibitedStr) . '\b/i'; 
     1121 
    11211122        if (preg_match_all($pattern, $targetStr, $matches = array())) { 
    11221123            $this->arrErr[$value[1]] = '※ ' . $value[0] . 'は入力できません。<br />'; 
Note: See TracChangeset for help on using the changeset viewer.