X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=samples%2Fassets%2Fposteddata.php;h=6b26aae3b7ae65f1bd4b6c6ae0c91c6e7f4956ca;hb=aedb6521c23a81ccb889827a7ccc7b42eb93d14f;hp=8ec398bd4291241f808cffc655f955bae28dea29;hpb=860af3c4bde9866c53d5123c57e3dc6166e0fe1e;p=ckeditor.git diff --git a/samples/assets/posteddata.php b/samples/assets/posteddata.php index 8ec398b..6b26aae 100644 --- a/samples/assets/posteddata.php +++ b/samples/assets/posteddata.php @@ -1,8 +1,8 @@ @@ -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-2013, CKSource - Frederico Knabben. All rights reserved. + Copyright © 2003-2014, CKSource - Frederico Knabben. All rights reserved.