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

From: Date: Thu, 23 Jun 2011 22:33:18 +0000
Subject: svn: /web/doc-editor/trunk/ index.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-2059@lists.php.net to get a copy of this message
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;';

« previous php.doc.web (#2059) next »