Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP7.3でswitch中のcontinueでwarningでるようになったのでbreakに変更 #91

Open
wants to merge 1 commit into
base: pilot
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions html/kernel/object.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,11 @@ public function cleanVars()
case XOBJ_DTYPE_TXTBOX:
if ($v['required'] && $cleanv != '0' && $cleanv == '') {
$this->setErrors("$k is required.");
continue;
break;
}
if (isset($v['maxlength']) && strlen($cleanv) > (int)$v['maxlength']) {
$this->setErrors("$k must be shorter than ".(int)$v['maxlength']." characters.");
continue;
break;
}
if (!$v['not_gpc']) {
$cleanv = $ts->stripSlashesGPC($ts->censorString($cleanv));
Expand All @@ -517,7 +517,7 @@ public function cleanVars()
case XOBJ_DTYPE_TXTAREA:
if ($v['required'] && $cleanv != '0' && $cleanv == '') {
$this->setErrors("$k is required.");
continue;
break;
}
if (!$v['not_gpc']) {
$cleanv = $ts->stripSlashesGPC($ts->censorString($cleanv));
Expand Down Expand Up @@ -548,11 +548,11 @@ public function cleanVars()
case XOBJ_DTYPE_EMAIL:
if ($v['required'] && $cleanv == '') {
$this->setErrors("$k is required.");
continue;
break;
}
if ($cleanv != '' && !preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i", $cleanv)) {
$this->setErrors("Invalid Email");
continue;
break;
}
if (!$v['not_gpc']) {
$cleanv = $ts->stripSlashesGPC($cleanv);
Expand All @@ -561,7 +561,7 @@ public function cleanVars()
case XOBJ_DTYPE_URL:
if ($v['required'] && $cleanv == '') {
$this->setErrors("$k is required.");
continue;
break;
}
if ($cleanv != '' && !preg_match("/^http[s]*:\/\//i", $cleanv)) {
$cleanv = 'http://' . $cleanv;
Expand Down