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

3.1.5 - Waiting time conflict

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.5
    • Fix Version/s: 3.2.0-RC1
    • Component/s: Posting
    • Labels:
      None

      Description

      I think there is a bug in phpBB (currently I use 3.1.5) that causes a new post not to be posted or updated if you do not wait at least two seconds before submitting the form.

      You did some research and find this code on line 106 in the posting.php:

      // Was cancel pressed? If so then redirect to the appropriate page
      if ($cancel || ($current_time - $lastclick < 2 && $submit))
      

      This code makes no sense I think, because it assumes every post will only be submitted after a minimum of two seconds, which is not true.

      If you are a very fast writer and you just update one letter, this will cause problems. The same thing if someone is fast and just copy and pastes his post from the local editor. I personally experienced this bug many times and it is very annoying, so I removed it.

      Second is that there is an option which let you disable the waiting time before doing a new post. This option and a waiting time less than two seconds doesn't figure at this time.

      Thank you!

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Marc Marc
                Reporter:
                ElooKoN ElooKoN [X] (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: