Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forum doesn't get created (some security filtering) #5550

Closed
ywarnier opened this issue May 28, 2024 · 1 comment
Closed

Forum doesn't get created (some security filtering) #5550

ywarnier opened this issue May 28, 2024 · 1 comment

Comments

@ywarnier
Copy link
Member

On https://campus.chamilo.org (1.11.26+), there is an issue with the creation of forum in some courses (not all). The forum category gets created no problem, but when creating a forum with a simple title (even just 3 letters together with no special char), I get:

PHP Fatal error:  Uncaught TypeError: Argument 1 passed to Security::filter_terms() must be of the type string, null given, called in main/inc/lib/security.lib.php on line 325 and defined in /main/inc/lib/security.lib.php:469
Stack trace:
#0 /main/inc/lib/security.lib.php(325): Security::filter_terms(NULL)
#1 /main/forum/forumfunction.inc.php(5077): Security::remove_XSS(NULL, 5, true)
#2 /main/forum/forumfunction.inc.php(439): prepare4display(NULL)
#3 /main/forum/forumfunction.inc.php(125): show_add_forum_form(Array, 0)
#4 /main/forum/index.php(101): handle_forum_and_forumcategories(0)
#5 {main}
  thrown in /main/inc/lib/security.lib.php on line 469
@ywarnier ywarnier added the Bug label May 28, 2024
@ywarnier ywarnier added this to the 1.11.28 milestone May 28, 2024
@NicoDucou
Copy link
Member

Already fixed in 1.11.x with this commit : 03e1960

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants