svn: /web/pres2/trunk/ index.php
| From: | Christian Wenz | Date: | Wed, 09 Sep 2009 11:51:26 +0000 |
| Subject: | svn: /web/pres2/trunk/ index.php | ||
| Groups: | php.pres | ||
| Request: | Send a blank email to pres+get-1592@lists.php.net to get a copy of this message | ||
wenz Wed, 09 Sep 2009 11:51:26 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=288196
Log:
fixing hypothetical XSS in pres2
Changed paths:
U web/pres2/trunk/index.php
Modified: web/pres2/trunk/index.php
===================================================================
--- web/pres2/trunk/index.php 2009-09-09 09:52:06 UTC (rev 288195)
+++ web/pres2/trunk/index.php 2009-09-09 11:51:26 UTC (rev 288196)
@@ -84,7 +84,7 @@
<html>
<head>
-<base href="<?php echo "http://".$_SERVER['HTTP_HOST'].$baseDir?>">
+<base href="<?php echo "http://".htmlspecialchars($_SERVER['HTTP_HOST']).$baseDir?>">
<title>PHP Presents</title>
<?php include("css.php"); ?>
<script language="JavaScript1.2" type="text/javascript">