Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-14536

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

    XMLWordPrintable

Details

    Description

      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
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: