X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=samples%2Fassets%2Fposteddata.php;h=c277550e6ba8f5ecf70fa80ef54d76bee0af6788;hb=a0df3d0ab0c5252b5e2e0fd274705ede834c2276;hp=8ec398bd4291241f808cffc655f955bae28dea29;hpb=860af3c4bde9866c53d5123c57e3dc6166e0fe1e;p=ckeditor.git diff --git a/samples/assets/posteddata.php b/samples/assets/posteddata.php index 8ec398b..c277550 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-2015, CKSource - Frederico Knabben. All rights reserved.