Commit 121dc06bbeb52b052e29aebd78fa232eed176f12
1 parent
41a743e9
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
ferramentas/cesium/kml3d.php
| ... | ... | @@ -52,9 +52,9 @@ body { |
| 52 | 52 | <body> |
| 53 | 53 | <div id="cesiumContainer"></div> |
| 54 | 54 | <div id="legenda"> |
| 55 | - <img src='<?php echo str_replace("legend","logo",$legenda);?>' /> | |
| 55 | + <img src='<?php echo strip_tags(str_replace("legend","logo",$legenda));?>' /> | |
| 56 | 56 | <br> |
| 57 | - <img src='<?php echo $legenda;?>' /> | |
| 57 | + <img src='<?php echo strip_tags($legenda);?>' /> | |
| 58 | 58 | </div> |
| 59 | 59 | <script> |
| 60 | 60 | var viewer = new Cesium.Viewer( |
| ... | ... | @@ -67,7 +67,7 @@ body { |
| 67 | 67 | |
| 68 | 68 | var imageryLayers = viewer.imageryLayers; |
| 69 | 69 | if('<?php echo $kmlurl;?>' != ''){ |
| 70 | - viewer.dataSources.add(Cesium.KmlDataSource.load('<?php echo $kmlurl;?>')) | |
| 70 | + viewer.dataSources.add(Cesium.KmlDataSource.load('<?php echo strip_tags($kmlurl);?>')) | |
| 71 | 71 | } |
| 72 | 72 | viewer.camera.lookAt(Cesium.Cartesian3.fromDegrees(-55.0, -13.0), new Cesium.Cartesian3(0.0, -4790000.0, 3930000.0)); |
| 73 | 73 | viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY); | ... | ... |