svn: /web/doc-editor/trunk/ index.php

[email protected] (Neal Poole)
Newsgroups php.doc.web
Message-ID <[email protected]>
nbpoole                                  Thu, 23 Jun 2011 22:33:18 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=312423

Log:
Fix minor output escaping issue.

Changed paths:
    U   web/doc-editor/trunk/index.php

Modified: web/doc-editor/trunk/index.php
===================================================================
--- web/doc-editor/trunk/index.php	2011-06-23 22:18:33 UTC (rev 312422)
+++ web/doc-editor/trunk/index.php	2011-06-23 22:33:18 UTC (rev 312423)
@@ -52,7 +52,7 @@
     $fileName = $_patch[count($_patch)-1];
     $filePath = substr($patch, 0, (strlen($patch)-strlen($fileName)));

-    $jsVar = 'var directAccess = {"link":"patch", "lang":"en", "path":"'.$filePath.'", "name":"'.$fileName.'", "project":"'.$_project.'"};';
+    $jsVar = 'var directAccess = {"link":"patch", "lang":"en", "path":"'.htmlspecialchars($filePath).'", "name":"'.htmlspecialchars($fileName).'", "project":"'.htmlspecialchars($_project).'"};';

 } else {
     $jsVar = 'var directAccess = false;';
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.