09.3 invalid DOB 问题

在Joomla用户注册过程中,如果输入的出生日期(DOB)为无效日期,如未来日期,系统不会显示验证错误并重定向回注册表单,而是返回500错误页面。预期结果是注册失败并提示DOB验证错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转自 https://issues.joomla.org/tracker/joomla-cms/8093

在修改生日时,不可以设置未来的日子,DOB就是 Date of Birth,得设成1988年5月12日而不是2018年5月12日。

(不小心暴露年龄了)

在网上查询相关解释时,没有中文注释,特此备注。

以下为原文:

[#8093] - Invalid DOB on user registration results in 500 error upon redirect, instead of successful redirect and display of validation error

Steps to reproduce the issue
  • Require Date of Birth (DOB) on User Profile
  • Attempt to Register a user using an invalid date for the DOB - ex: 1970-13-13
Expected result
  • Registration will fail, redirecting back to the registration form and showing the DOB validation error"Registration failed: The date of birth you entered is invalid. Please enter valid date."(PLG_USER_PROFILE_ERROR_INVALID_DOB)
Actual result
  • Instead, the redirect fails on the invalid date, resulting in a 500 error page showing"DateTime::__construct(): Failed to parse time string (1970-13-13) at position 6 (3): Unexpected character"
System information (as much as possible)
  • PHP 5.5.0RC3
  • MySQL 5.5.32
Additional comments
  • Should be trivial for someone else to try to reproduce and confirm or deny

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值