> 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_
It'd be nice to have a full preview of the note you're editing. I've
included a patch against php-master-web/manage/user-notes#1.34 to do
this, by highlight_php()ing .
I'm pretty sure it works. ;-)
Ken
---
Index: user-notes.php
=