This commit: http://drupal.org/cvs?commit=21962 on the filter.module produces this warning:

	preg_replace_callback() [function.preg-replace-callback]: Unknown modifier ' ' in drupal\modules\filter.module on line 1096.

As a result, you can't see the text of a node after it has been submitted. This is bad, bad, bad.

Attached is a patch that fixes this, the regex *should* be on one line. I put in a comment to explain it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

m3avrck’s picture

There is another issue too:

warning: Cannot use a scalar value as an array in modules\filter.module on line 1119.

Not sure how to fix that one, not as critical as the above patch which needs to go in.

saerdna’s picture

i dont really know what's wrong but the patch applies and fixes the problem :)

chx’s picture

Status: Reviewed & tested by the community » Needs work
m3avrck’s picture

FileSize
600 bytes

Better patch after talking with chx.

m3avrck’s picture

FileSize
773 bytes

Revised patch fixes other warning.

saerdna’s picture

Status: Needs work » Reviewed & tested by the community

well done.

walkah’s picture

+1 commit now, yadda yadda... this is a nasty one.

m3avrck’s picture

Status: Reviewed & tested by the community » Fixed

Looks like this is fixed now.

Anonymous’s picture

Status: Fixed » Closed (fixed)