phpBB Development: phpBB is a popular open-source bulletin board written in PHP. This repository also contains the history of version 2.
Find a file
LukeWCS 1f96a2c79a [ticket/17076] Fix signature length calculation
The error occurs when BBcode is used but there is no whitespace. In this case,
a part of the RegEx that is designed to be greedy is responsible for selecting
all BBcode tag containers and their content that do not contain whitespace.
This, in combination with the replace string, effectively reduces the entire
signature to a single space. This is the explanation for the reported behavior
of phpBB.

In addition, the bug also generally prevents the correct removal of BBcode
containers if their content does not contain whitespace. In such cases, the
BBcode tags are removed along with the content, which also results in
incorrect calculation of the text length.

* Changed the corresponding RegEx part from greedy to non-greedy.
* Removed an unnecessary class definition.
* Changed an unnecessary capturing group to a non-capturing group.
* Changed the replace string from a space to an empty string. <- Here,
however, I'm not sure if the space was intentional or not!

PHPBB3-17076
2023-02-01 20:21:37 +01:00
.devcontainer [ticket/17086] Remove trailing slash in Dockerfile 2023-01-14 17:17:54 +00:00
.github [ticket/17091] Update windows build commands as well 2023-01-15 22:00:21 +01:00
.vscode [ticket/17086] Add missing empty lines and remove extra whitespace 2023-01-14 08:40:49 +01:00
build [3.3.x] Update versions to 3.3.11-dev 2023-01-13 22:50:09 +01:00
git-tools [ticket/16988] Apply fixes suggested by shellcheck 2022-04-17 09:40:56 +02:00
phpBB [ticket/17076] Fix signature length calculation 2023-02-01 20:21:37 +01:00
tests Merge pull request #6410 from DaRk1V0iD/ticket/16913_3.3.x 2023-01-31 16:50:59 +01:00
travis [ticket/16754] Update Doctum to 5.4.1 2021-04-22 02:03:21 +02:00
vagrant [ticket/16131] Force vagrant to install phpBB with php7.2 2019-08-14 12:23:00 +00:00
.editorconfig [ticket/12951] Made editorconfig file comments better 2014-08-10 15:55:02 +02:00
.gitignore [ticket/16896] Adds comments in .gitignore and excludes custom envs 2021-10-28 22:15:25 +02:00
.jscsrc [ticket/13898] Moved jshint and jscs rcs to correct dir. 2015-05-31 13:50:48 +02:00
.jshintrc [ticket/14720] Add "phpbb" as allowed global to jshintrc 2016-07-23 19:14:30 -07:00
composer.phar [ticket/16987] Move back to composer 2.2 for PHP 7.1 compatibility 2022-04-15 22:35:23 +02:00
doctum.phar [ticket/16754] Update Doctum to 5.4.1 2021-04-22 02:03:21 +02:00
LICENSE [ticket/15768] Add a license to a repository 2018-09-15 12:51:32 +02:00
phpunit.xml.dist [ticket/16549] Rename class phpbb_lint_test rather than the test file 2020-10-18 11:26:44 +07:00
README.md [ticket/17086] Add Codespaces documentation 2023-01-10 22:46:14 +08:00
Vagrantfile [ticket/14547] Use package compatible with phpBB requirements 2016-04-28 08:36:49 -07:00

phpBB

phpBB is a free open-source bulletin board written in PHP.

🧑🏻🤝🏻🧑🏽 Community

Get your copy of phpBB, find support and lots more on phpBB.com. Discuss the development on area51.

👨‍💻 Contribute

  1. Create an account on phpBB.com
  2. Create a ticket (unless there already is one)
  3. Read our Coding guidelines and Git Contribution Guidelines
  4. Send us a pull request

🏗️ Setting up a development build of phpBB

To run an installation from the repo (and not from a pre-built package) on a local server, run the following commands:

  • Fork phpbb/phpbb to your GitHub account, then create a local clone of it:
    git clone https://github.com/your_github_name/phpbb.git
    
  • Install phpBB's dependencies (from the root of your phpbb repo):
    cd phpBB
    php ../composer.phar install
    

Alternatively, you can read:

📓 Documentation

phpBB's Development Documentation contains all the information you'll need to learn about developing for phpBB's core, extensions and automated testing.

🔬 Automated Testing

We have unit and functional tests in order to prevent regressions. You can view the bamboo continuous integration here or check our GitHub Actions below:

Branch Description GitHub Actions
master Latest development version Tests
3.3.x Development of version 3.3.x Tests

📜 License

GNU General Public License v2