DrupalChat Visibility: Option 3 (PHP Code) is not working

Created on 31 July 2017, over 7 years ago
Updated 1 August 2023, over 1 year ago

On admin/config/drupalchat/configuration you can set the DrupalChat Visibility.

If you set it to PHP (Option 3 "Pages on which this PHP code returns TRUE (experts only)") the entered PHP code does not seem to be executed properly in Version 2.8. It did in 2.5. As an example I tried a simple return false.

I looked into the drupalchat.module and on line 67 there's a check_plain()-function introduced. Probably for security reasons. But maybe this does not make sense for a PHP Code field? I removed it and it worked again. Maybe you can fix this for the next release. (i'm no developer)

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024