[Mapbender-commits] r4824 - branches/2.6/http/frames

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Oct 20 08:13:20 EDT 2009


Author: christoph
Date: 2009-10-20 08:13:19 -0400 (Tue, 20 Oct 2009)
New Revision: 4824

Modified:
   branches/2.6/http/frames/index.php
Log:
HTML valid

Modified: branches/2.6/http/frames/index.php
===================================================================
--- branches/2.6/http/frames/index.php	2009-10-20 12:12:26 UTC (rev 4823)
+++ branches/2.6/http/frames/index.php	2009-10-20 12:13:19 UTC (rev 4824)
@@ -18,7 +18,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-require("../php/mb_validateSession.php");
+require_once("../php/mb_validateSession.php");
 require_once(dirname(__FILE__)."/../classes/class_gui.php");
 
 $_SESSION["mb_user_gui"] = $gui_id;
@@ -47,6 +47,8 @@
 <meta http-equiv="pragma" content="no-cache">
 <meta http-equiv="expires" content="0">
 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET;?>">
+<META http-equiv="Content-Style-Type" content="text/css">
+<META http-equiv="Content-Script-Type" content="text/javascript">
 <title><?php echo  $gui_id;?> - presented by Mapbender</title>
 <?php
 $sql = "SELECT * FROM gui_element_vars WHERE fkey_e_id = 'body' AND fkey_gui_id = $1 and var_name='favicon'";
@@ -87,7 +89,7 @@
 <?php
 $currentApplication = new gui($gui_id);
 echo $currentApplication->toHtml();
-$mapPhpParameters = $urlParameters."&mb_myBBOX=".$_REQUEST["mb_myBBOX"];
+$mapPhpParameters = htmlentities($urlParameters, ENT_QUOTES, CHARSET)."&amp;mb_myBBOX=".$_REQUEST["mb_myBBOX"];
 echo "<script type='text/javascript' src='../javascripts/map.php?".$mapPhpParameters."'></script>";
 
 ?>



More information about the Mapbender_commits mailing list