I was unable to add PHP snippets into the handbook due to the error "Terminated request because of suspicious input data."

I have also attempted to cite the code into the bug report here, but received the same error. Both where enclosed with <?PHP ?> tags

CommentFileSizeAuthor
#1 snippet.txt1.37 KBtamarian

Comments

tamarian’s picture

StatusFileSize
new1.37 KB

This seems to effect a specific PHP code snippit, while other samples do not have this problem. I have attempted to post the code here with
, tags, and without tags, with the same result. I'll see if it attaches without proplems.

chx’s picture

I read your snippet, please use theme('foo') instead of theme_foo. The latter is not customizable.

tamarian’s picture

Is that the cause of the error?

This snippet is intended to import 3rd party template, using other template engines. The customization is done outside Drupal themes i get_template()

sepeck’s picture

Status: Active » Closed (fixed)

no further updates, closing issue.