Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-14536

Force timestamp to be integer in user::format_date()

XMLWordPrintable

      While the docblock of the phpbb\user::format_date() method states that the unix timestamp $gmepoch needs to be integer, this is never enforced. This can potentially result in a fatal error in case the passed timestamp is a string or empty string:

      Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string
      

            Marc Marc
            Marc Marc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: