Lukas W.
Well-known member
I wasn't completely sure if I should post this as bug report or as suggestion, but I went with bug report for now, as it seems kinda broken to me. Please feel free to move it to suggestions and rename it to something more useful, if necessary.
When creating a search index item, XF doesn't run any pre-processing method on the search message that's being entered into the database. I assume it's that message that's being used to create the final search result listing item, so the BB code probably wants to stay in there, but it also allows to search for BB code structures, that might not be intended to be searched. Custom BB codes like a parsehtml or hide get stored into the search index without any real means of pre-processing, so we can't actually strip out content that we don't want to go there. As
When creating a search index item, XF doesn't run any pre-processing method on the search message that's being entered into the database. I assume it's that message that's being used to create the final search result listing item, so the BB code probably wants to stay in there, but it also allows to search for BB code structures, that might not be intended to be searched. Custom BB codes like a parsehtml or hide get stored into the search index without any real means of pre-processing, so we can't actually strip out content that we don't want to go there. As
IndexRecord::create
doesn't go through the class proxy for obvious reasons, we don't really have a way to intercept and apply our own sanitation.
Upvote
3