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

Invalid regular expression in Bad words filter throwing PHP warning #3354

Closed
AndreRl opened this issue Jul 22, 2018 · 0 comments · Fixed by #3355
Closed

Invalid regular expression in Bad words filter throwing PHP warning #3354

AndreRl opened this issue Jul 22, 2018 · 0 comments · Fixed by #3355
Labels
b:1.8 Branch: 1.8.x s:resolved Status: Resolved. Solution implemented or scheduled t:bug Type: Bug. An issue causing error / flaw / malfunction
Milestone

Comments

@AndreRl
Copy link
Contributor

AndreRl commented Jul 22, 2018

Bad words filter is not working in 1.8.17 for *jeb* and *јеб* on https://www.medicinari.com/forum at all.

When that is checked as Regular Expression I am getting on front end of forum next:

Quote:
Warning [2] preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 0 - Line: 655 - File: inc/class_parser.php PHP 5.3.29 (Linux)
File
Line
Function[PHP]

errorHandler->error
/inc/class_parser.php
655
preg_replace
/inc/functions_post.php
169
postParser->parse_badwords
/showthread.php
1110
build_postbit
Warning [2] preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 0 - Line: 655 - File: inc/class_parser.php PHP 5.3.29 (Linux)
File
Line
Function[PHP]

errorHandler->error
/inc/class_parser.php
655
preg_replace
/inc/class_parser.php
134
postParser->parse_badwords
/inc/functions_post.php
774
postParser->parse_message
/showthread.php
1110
build_postbit
Warning [2] preg_replace() [function.preg-replace]: Compilation failed: nothing to repeat at offset 0 - Line: 655 - File: inc/class_parser.php PHP 5.3.29 (Linux)
File
Line
Function[PHP]

errorHandler->error
/inc/class_parser.php
655
preg_replace
/inc/class_parser.php
134
postParser->parse_badwords
/inc/functions_post.php
774
postParser->parse_message
/showthread.php
1110
build_postbit
Line
Function[PHP]

errorHandler->error
/inc/class_parser.php
655
preg_replace
/inc/functions_post.php
169
postParser->parse_badwords
/showthread.php
1110
build_postbit

Regards,
Serbian Translator

Original thread: Bad words filter is not working in 1.8.17

@effone effone added t:bug Type: Bug. An issue causing error / flaw / malfunction s:confirmed Status: Confirmed. Retested and found the issue exists b:1.8 Branch: 1.8.x labels Jul 22, 2018
@effone effone added this to the 1.8.18 milestone Jul 22, 2018
@effone effone changed the title Bad words filter is not working in 1.8.17 Invalid regular expression in Bad words filter throwing PHP warning Jul 22, 2018
@effone effone added s:resolved Status: Resolved. Solution implemented or scheduled and removed s:confirmed Status: Confirmed. Retested and found the issue exists labels Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b:1.8 Branch: 1.8.x s:resolved Status: Resolved. Solution implemented or scheduled t:bug Type: Bug. An issue causing error / flaw / malfunction
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants