Yes, you found it, and yes, this would be the correct fix.
I can also rest easy in knowing that there isn't a 'bug' in the core code that is allowing something 'illegal' to get past the pre-processing (only to be trapped in the post processing), because as a result of what you have found it is now clear that the code is doing exactly what it should be doing.
No problem, I appreciate you taking the advice and following things through to its conclusion. It would have been unwise for me to 'allow' the commenting out a line of the core code without knowing the implications, and if you had found the cause to be almost anything other than what you did, I would have been concerned that there was a bug in the core code that needed further investigation.
In other words, this is a very good outcome with all questions and concerns answered. Well worth the effort.
Cheers
Rod
Bookmarks