Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html	(revision 7693)
+++ /CKEditor/trunk/CHANGES.html	(revision 7694)
@@ -49,11 +49,4 @@
 		<li><a href="http://dev.ckeditor.com/ticket/8888">#8888</a> : It was not possible to scroll dialogs on very small viewports.</li>
 		<li><a href="http://dev.ckeditor.com/ticket/9594">#9594</a> : The TAB key was having no effect on focused read-only editor.</li>
-	</ul>
-	<h3>
-			CKEditor 3.6.5.1</h3>
-	<p>
-			Fixed issues:</p>
-	<ul>
-		<li>Security update: Added protection against XSS attack and possible path disclosure in PHP sample. </li>
 	</ul>
 	<h3>
Index: /CKEditor/trunk/_samples/assets/_posteddata.php
===================================================================
--- /CKEditor/trunk/_samples/assets/_posteddata.php	(revision 7693)
+++ /CKEditor/trunk/_samples/assets/_posteddata.php	(revision 7694)
@@ -26,22 +26,22 @@
 <?php
 
-if (!empty($_POST))
+if ( isset( $_POST ) )
+	$postArray = &$_POST ;			// 4.1.0 or later, use $_POST
+else
+	$postArray = &$HTTP_POST_VARS ;	// prior to 4.1.0, use HTTP_POST_VARS
+
+foreach ( $postArray as $sForm => $value )
 {
-	foreach ( $_POST as $key => $value )
-	{
-		if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) )
-			continue;
+	if ( get_magic_quotes_gpc() )
+		$postedValue = htmlspecialchars( stripslashes( $value ) ) ;
+	else
+		$postedValue = htmlspecialchars( $value ) ;
 
-		if ( get_magic_quotes_gpc() )
-			$value = htmlspecialchars( stripslashes((string)$value) );
-		else
-			$value = htmlspecialchars( (string)$value );
 ?>
 		<tr>
-			<th style="vertical-align: top"><?php echo htmlspecialchars( (string)$key ); ?></th>
-			<td><pre class="samples"><?php echo $value; ?></pre></td>
+			<th style="vertical-align: top"><?php echo htmlspecialchars($sForm); ?></th>
+			<td><pre class="samples"><?php echo $postedValue?></pre></td>
 		</tr>
 	<?php
-	}
 }
 ?>
