cvs: phd /themes/php phpdotnet.php

From: Date: Thu, 04 Oct 2007 20:06:56 +0000
Subject: cvs: phd /themes/php phpdotnet.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-142@lists.php.net to get a copy of this message
bjori Thu Oct 4 20:06:56 2007 UTC Modified files: /phd/themes/php phpdotnet.php Log: Escape the version info (patch by Richard Q.) http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.24&r2=1.25&diff_format=u Index: phd/themes/php/phpdotnet.php diff -u phd/themes/php/phpdotnet.php:1.24 phd/themes/php/phpdotnet.php:1.25 --- phd/themes/php/phpdotnet.php:1.24 Thu Oct 4 13:16:07 2007 +++ phd/themes/php/phpdotnet.php Thu Oct 4 20:06:56 2007 @@ -1,5 +1,5 @@ <?php -/* $Id: phpdotnet.php,v 1.24 2007/10/04 13:16:07 bjori Exp $ */ +/* $Id: phpdotnet.php,v 1.25 2007/10/04 20:06:56 bjori Exp $ */ class phpdotnet extends PhDHelper { protected $elementmap = array( @@ -216,7 +216,7 @@ } public function format_refpurpose($open, $tag, $attrs) { if ($open) { - return sprintf('<p class="verinfo">(%s)</p><p class="refpurpose">%s — ', $this->versionInfo($this->refname), $this->refname); + return sprintf('<p class="verinfo">(%s)</p><p class="refpurpose">%s — ', htmlspecialchars($this->versionInfo($this->refname), ENT_QUOTES, "UTF-8"), $this->refname); } return "</p>\n"; }

« previous php.doc.cvs (#142) next »