> I would be happy to commit a corrected patch :) BTW do not worry about
> the missing highlight_php() function, it will be implemented if needed.
I think the patch can be as simple as this.
Jakub VranaIndex: user-notes.php
===
RCS f
+ $cleaned_note = clean_note(stripslashes($note));
+ $cleaned_note = preg_replace_callback(
+'#<\?php(.*)\?>#',
+create_function(
+ '$matches',
+ 'return highlight_php(\'\');'
+)
+ );
One call of highlight_php should be enough as PHP tags are
Ken Tossell wrote:
> + $cleaned_note = clean_note(stripslashes($note));
> + $cleaned_note = preg_replace_callback(
> +'#<\?php(.*)\?>#',
> +create_function(
> + '$matches',
> + 'return highlight_php(\'\');'
> +)
> + );
One call of highlight_