This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -39,18 +39,18 @@ public function getItemViewLink($params)
39
39
$ webroot = Zend_Controller_Front::getInstance ()->getBaseUrl ();
40
40
if ($ this ->ModuleComponent ->Validation ->canVisualizeWithSliceView ($ item )
41
41
) {
42
- $ html = '<li><a href=" ' .$ webroot .'/ ' .$ this ->moduleName .'/paraview/slice?itemId= ' .$ item ->getKey ().'"> ' ;
42
+ $ html = '<li><a href=" ' .$ webroot .'/ ' .$ this ->moduleName .'/paraview/slice?itemId= ' .htmlspecialchars ( $ item ->getKey (), ENT_QUOTES , ' UTF-8 ' ).'"> ' ;
43
43
$ html .= '<img alt="" src=" ' .$ webroot .'/modules/ ' .$ this ->moduleName .'/public/images/sliceView.png" /> ' ;
44
44
$ html .= 'Slice Visualization</a></li> ' ;
45
45
46
- $ html .= '<li><a href=" ' .$ webroot .'/ ' .$ this ->moduleName .'/paraview/volume?itemId= ' .$ item ->getKey ().'"> ' ;
46
+ $ html .= '<li><a href=" ' .$ webroot .'/ ' .$ this ->moduleName .'/paraview/volume?itemId= ' .htmlspecialchars ( $ item ->getKey (), ENT_QUOTES , ' UTF-8 ' ).'"> ' ;
47
47
$ html .= '<img alt="" src=" ' .$ webroot .'/modules/ ' .$ this ->moduleName .'/public/images/volume.png" /> ' ;
48
48
$ html .= 'Volume Visualization</a></li> ' ;
49
49
50
50
return $ html ;
51
51
} elseif ($ this ->ModuleComponent ->Validation ->canVisualizeWithSurfaceView ($ item )
52
52
) {
53
- $ html = '<li><a href=" ' .$ webroot .'/ ' .$ this ->moduleName .'/paraview/surface?itemId= ' .$ item ->getKey ().'"> ' ;
53
+ $ html = '<li><a href=" ' .$ webroot .'/ ' .$ this ->moduleName .'/paraview/surface?itemId= ' .htmlspecialchars ( $ item ->getKey (), ENT_QUOTES , ' UTF-8 ' ).'"> ' ;
54
54
$ html .= '<img alt="" src=" ' .$ webroot .'/modules/ ' .$ this ->moduleName .'/public/images/pqUnstructuredGrid16.png" /> ' ;
55
55
$ html .= 'Surface Visualization</a></li> ' ;
56
56
Original file line number Diff line number Diff line change 45
45
foreach ($ this ->instances as $ row ) {
46
46
$ instance = $ row ['dao ' ];
47
47
$ status = $ row ['status ' ];
48
- echo '<tr key=" ' .$ instance ->getKey ().'"><td> ' .$ instance ->getKey ().'</td><td> ' .$ instance ->getPort (
49
- ).'</td><td> ' .$ instance ->getPid ().'</td><td> ' .$ instance ->getCreationDate (
50
- ).'</td><td> ' .($ status ? '<span class="running">Running</span> ' : '<span class="dead">Dead</span> ' );
48
+ echo '<tr key=" ' .$ this -> escape ( $ instance ->getKey ()) .'"><td> ' .$ this -> escape ( $ instance ->getKey ()) .'</td><td> ' .$ this -> escape ( $ instance ->getPort (
49
+ )) .'</td><td> ' .$ this -> escape ( $ instance ->getPid ()) .'</td><td> ' .$ this -> escape ( $ instance ->getCreationDate (
50
+ )) .'</td><td> ' .($ status ? '<span class="running">Running</span> ' : '<span class="dead">Dead</span> ' );
51
51
52
- echo '</td><td><img qtip="Kill instance" alt="" class="killInstance" key=" ' .$ instance ->getKey (
53
- ).'" src=" ' .$ this ->coreWebroot .'/public/images/icons/close.png"/></td></tr> ' ;
52
+ echo '</td><td><img qtip="Kill instance" alt="" class="killInstance" key=" ' .$ this -> escape ( $ instance ->getKey (
53
+ )) .'" src=" ' .$ this ->coreWebroot .'/public/images/icons/close.png"/></td></tr> ' ;
54
54
}
55
55
?>
56
56
</tbody>
You can’t perform that action at this time.
0 commit comments