[Svn-src-all:3214] [version-2_12-dev 22115] #1903 (無駄な処理を改善する)
Seasoft
admin @ mail.ec-cube.net
2012年 12月 1日 (土) 20:54:49 JST
Subversion committed to /home/svn/open 22115
http://svn.ec-cube.net/open_trac/changeset/22115
┌────────────────────────────┐
│更新者 : Seasoft │
│更新日時: 2012-12-01 20:54:49 +0900 (土, 01 12月 2012)│
└────────────────────────────┘
Log:
--------------------------------------------------------
#1903 (無駄な処理を改善する)
* 文字クラスには区切りは不要。また、「|」は[:graph:]に含む。
Changed: [U:修正,A:追加,D:削除]
--------------------------------------------------------
U branches/version-2_12-dev/data/class/SC_CheckError.php
変更: branches/version-2_12-dev/data/class/SC_CheckError.php
===================================================================
--- branches/version-2_12-dev/data/class/SC_CheckError.php 2012-12-01 08:15:33 UTC (rev 22114)
+++ branches/version-2_12-dev/data/class/SC_CheckError.php 2012-12-01 11:54:49 UTC (rev 22115)
@@ -558,7 +558,7 @@
return;
}
$this->createParam($value);
- if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:graph:]|[:space:]]+$/i", $this->arrParam[$value[1]])) {
+ if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:graph:][:space:]]+$/i", $this->arrParam[$value[1]])) {
$this->arrErr[$value[1]] = '※ ' . $value[0] . 'は英数記号で入力してください。<br />';
}
}
Svn-src-all メーリングリストの案内