Descargar
Desarrollar
Cuenta
Descargar
Desarrollar
Entrar
Forgot Account/Password
Crear Cuenta
Idioma
Ayuda
Idioma
Ayuda
×
Entrar
Nombre de usuario
Contraseña
×
Forgot Account/Password
Translation Status of Español
Categoría:
Software
Gente
PersonalForge
Magazine
Wiki
Buscar
OSDN
>
Buscar Software
>
Internet
>
WWW/HTTP
>
Dynamic Content
>
XOOPS
>
Ticket List/Search
>
Incidencia #4047
XOOPS
Descripción
Project Summary
Developer Dashboard
Página Web
Developers
Image Gallery
List of RSS Feeds
Activity
Statistics
Historial
Descargas
List of Releases
Stats
Código Fuente
Code Repository list
CVS
Ver Repositorio
Incidencia
Ticket List
Milestone List
Type List
Component List
List of frequently used tickets/RSS
Submit New Ticket
Documents
Communication
Foros
List of Forums
Ayuda (1)
Open Discussion (1)
Mailing Lists
list of ML
xoops-cvslog
Noticias
Incidencia #4047
Ticket List
Submit New Ticket
RSS
XOBJ_DTYPE_EMAIL の null 許可が効かない
Abrir Fecha:
2004-03-06 23:05
Última actualización:
2004-03-12 05:42
monitor
ON
OFF
Informador:
minahito
Propietario:
(Ninguno)
Tipo:
Bugs
Estado:
Cerrado
Componente:
(Ninguno)
Hito:
(Ninguno)
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
1
Details
Responder
XoopsObject の型のひとつ XOBJ_DTYPE_EMAIL
は、'required' を false (入力必須項目としない)にして
も、未入力状態では正規表現チェックのほうに引っかかってしま
い、メールアドレスエラーとなって cleanVars メソッドが終了
しません。
以下は /kernel/object.php の該当部分ですが、
case XOBJ_DTYPE_EMAIL:
if ($v['required'] && $cleanv == '') {
$this->setErrors("$k is required.");
continue;
}
if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)
*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i",$cleanv)) {
$this->setErrors("Invalid Email");
continue;
}
if (!$v['not_gpc']) {
$cleanv = $ts->stripSlashesGPC
($cleanv);
}
break;
if (!preg_match( のところに、 $cleanv != '' && が必要
だと思います。
XOBJ_DTYPE_URL では 、
if ($cleanv != '' && !preg_match("/^http[s]*:\/\//i",
$cleanv)) {
というようになっています。
Ticket History (2/2 Histories)
2004-03-06 23:05
Updated by:
minahito
File
886: object.zip
is attached
2004-03-12 05:42
Updated by:
onokazu
Ticket Close date
is changed to
2004-03-12 05:42
Resolución
Update from
Ninguno
to
Fixed
Estado
Update from
Open
to
Cerrado
Comentario
Responder
Logged In: YES
user_id=754
ありがとうございます。
CVSにて修正済です
http://cvs.sourceforge.jp/cgi-
bin/viewcvs.cgi/xoops/xoops2/kernel/object.php.diff?
r1=1.3&r2=1.4
Attachment File List (
1
)
Attachment File List
object.zip
(4KB)
修正を試みたファイル
Editar
Add Comment
You are not logged in.
I you are not logged in, your comment will be treated as an anonymous post. »
Entrar
Add Comment
Vista previa
Submit
は、'required' を false (入力必須項目としない)にして
も、未入力状態では正規表現チェックのほうに引っかかってしま
い、メールアドレスエラーとなって cleanVars メソッドが終了
しません。
以下は /kernel/object.php の該当部分ですが、
case XOBJ_DTYPE_EMAIL:
if ($v['required'] && $cleanv == '') {
$this->setErrors("$k is required.");
continue;
}
if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)
*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i",$cleanv)) {
$this->setErrors("Invalid Email");
continue;
}
if (!$v['not_gpc']) {
$cleanv = $ts->stripSlashesGPC
($cleanv);
}
break;
if (!preg_match( のところに、 $cleanv != '' && が必要
だと思います。
XOBJ_DTYPE_URL では 、
if ($cleanv != '' && !preg_match("/^http[s]*:\/\//i",
$cleanv)) {
というようになっています。