From: <vb...@us...> - 2002-09-26 06:55:08
|
Update of /cvsroot/webnotes/webnotes In directory usw-pr-cvs1:/tmp/cvs-serv20913 Modified Files: note_preview_page.php Log Message: - Removed some hard-coded formatting from the theme, and moved it to the theme.css - Removed some styles which were not needed. - Used strict XHTML validator with the phpnet theme output and fixed all errors. (there is only one remaining error in the sample files which uses border="0" for the source forge logo). - Used htmlspecialchars() rather than string_disable_html() and used it for e-mail / note. This is to escape chars like <, >, and hence get no errors from the validator. - Removed strings_disable_html() - #<note id> will now work in the e-mail (title) field. Index: note_preview_page.php =================================================================== RCS file: /cvsroot/webnotes/webnotes/note_preview_page.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- note_preview_page.php 24 Sep 2002 06:14:39 -0000 1.10 +++ note_preview_page.php 26 Sep 2002 06:55:04 -0000 1.11 @@ -25,8 +25,8 @@ $f_note_id = gpc_get_int( 'f_note_id' ); $f_page_id = gpc_get_int( 'f_page_id' ); - $f_email = string_disable_html( gpc_get_string( 'f_email' ) ); - $f_note = string_disable_html( gpc_get_string( 'f_note' ) ); + $f_email = gpc_get_string( 'f_email' ); + $f_note = gpc_get_string( 'f_note' ); $t_page_info = page_get_info( page_where_id_equals( $f_page_id ) ); if ( false === $t_page_info ) { @@ -35,9 +35,9 @@ } $t_note['id'] = '0'; - $t_note['email']= $f_email; + $t_note['email']= string_prepare_note_for_viewing( $f_email ); $t_note['date'] = date ($g_date_format); - $t_note['note'] = string_prepare_note_for_viewing( $f_note, false ); + $t_note['note'] = string_prepare_note_for_viewing( $f_note ); $t_page_data = array(); $t_page_data['id'] = 0; |