X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=samples%2Fassets%2Fposteddata.php;h=dcef922786ada01d1bf6b9c0ac67c8759998d977;hp=40c519fcfd15dea4a5d64a88bc2f81bc8033c4dd;hb=3ae1f974ffdf269f96455a39d8d6947e4d590b1b;hpb=4625dba05116026713fee9008dd93306be0d1553 diff --git a/samples/assets/posteddata.php b/samples/assets/posteddata.php index 40c519f..dcef922 100644 --- a/samples/assets/posteddata.php +++ b/samples/assets/posteddata.php @@ -1,7 +1,7 @@ @@ -25,24 +25,24 @@ For licensing, see LICENSE.html or http://ckeditor.com/license $value ) +if (!empty($_POST)) { - if ( get_magic_quotes_gpc() ) - $postedValue = htmlspecialchars( stripslashes( $value ) ) ; - else - $postedValue = htmlspecialchars( $value ) ; + foreach ( $_POST as $key => $value ) + { + if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) ) + continue; + if ( get_magic_quotes_gpc() ) + $value = htmlspecialchars( stripslashes((string)$value) ); + else + $value = htmlspecialchars( (string)$value ); ?> - -
+ +
@@ -52,7 +52,7 @@ foreach ( $postArray as $sForm => $value ) CKEditor - The text editor for the Internet - http://ckeditor.com

- Copyright © 2003-2012, CKSource - Frederico Knabben. All rights reserved. + Copyright © 2003-2013, CKSource - Frederico Knabben. All rights reserved.