@@ -32,26 +32,26 @@ $this->headScript()->appendFile($this->coreWebroot.'/public/js/jquery/jquery.for
32
32
method="POST">
33
33
<div class="formRow">
34
34
<label for="metricName">Metric name</label>
35
- <input type="text" name="metricName" value="<?php echo $ this ->trend ->getMetricName (); ?> "
35
+ <input type="text" name="metricName" value="<?php echo $ this ->escape ( $ this -> trend ->getMetricName () ); ?> "
36
36
qtip="The metric name that submission clients use to identify this trend"/>
37
37
</div>
38
38
<div class="formRow">
39
39
<label for="displayName">Display name</label>
40
- <input type="text" name="displayName" value="<?php echo $ this ->trend ->getDisplayName (); ?> "
40
+ <input type="text" name="displayName" value="<?php echo $ this ->escape ( $ this -> trend ->getDisplayName () ); ?> "
41
41
qtip="The title that is displayed in Midas for this trend"/>
42
42
</div>
43
43
<div class="formRow">
44
44
<label for="unit">Unit</label>
45
- <input type="text" name="unit" value="<?php echo $ this ->trend ->getUnit (); ?> "
45
+ <input type="text" name="unit" value="<?php echo $ this ->escape ( $ this -> trend ->getUnit () ); ?> "
46
46
qtip="The unit of measurement for this metric (optional)"/>
47
47
</div>
48
48
<div class="formRow">
49
49
<label>Config Dataset</label>
50
50
<span class="configDatasetContent">
51
51
<?php
52
52
if ($ this ->trend ->getConfigItemId ()) {
53
- echo '<a href=" ' .$ this ->webroot .'/item/ ' .$ this ->trend ->getConfigItemId ().'"> ' .$ this ->trend ->getConfigItem (
54
- )->getName ().'</a> ' ;
53
+ echo '<a href=" ' .$ this ->webroot .'/item/ ' .$ this ->escape ( $ this -> trend ->getConfigItemId ()) .'"> ' .$ this -> escape ( $ this ->trend ->getConfigItem (
54
+ )->getName ()) .'</a> ' ;
55
55
} else {
56
56
echo '<span class="noItem">none</span> ' ;
57
57
}
@@ -65,8 +65,8 @@ $this->headScript()->appendFile($this->coreWebroot.'/public/js/jquery/jquery.for
65
65
<span class="testDatasetContent">
66
66
<?php
67
67
if ($ this ->trend ->getTestDatasetId ()) {
68
- echo '<a href=" ' .$ this ->webroot .'/item/ ' .$ this ->trend ->getTestDatasetId (
69
- ).'"> ' .$ this ->trend ->getTestDatasetItem ()->getName ().'</a> ' ;
68
+ echo '<a href=" ' .$ this ->webroot .'/item/ ' .$ this ->escape ( $ this -> trend ->getTestDatasetId (
69
+ )) .'"> ' .$ this ->escape ( $ this -> trend ->getTestDatasetItem ()->getName () ).'</a> ' ;
70
70
} else {
71
71
echo '<span class="noItem">none</span> ' ;
72
72
}
@@ -80,8 +80,8 @@ $this->headScript()->appendFile($this->coreWebroot.'/public/js/jquery/jquery.for
80
80
<span class="truthDatasetContent">
81
81
<?php
82
82
if ($ this ->trend ->getTruthDatasetId ()) {
83
- echo '<a href=" ' .$ this ->webroot .'/item/ ' .$ this ->trend ->getTruthDatasetId (
84
- ).'"> ' .$ this ->trend ->getTruthDatasetItem ()->getName ().'</a> ' ;
83
+ echo '<a href=" ' .$ this ->webroot .'/item/ ' .$ this ->escape ( $ this -> trend ->getTruthDatasetId (
84
+ )) .'"> ' .$ this ->escape ( $ this -> trend ->getTruthDatasetItem ()->getName () ).'</a> ' ;
85
85
} else {
86
86
echo '<span class="noItem">none</span> ' ;
87
87
}
@@ -90,10 +90,10 @@ $this->headScript()->appendFile($this->coreWebroot.'/public/js/jquery/jquery.for
90
90
<input type="button" class="removeItem" element="truth" value="Remove"/>
91
91
<input type="button" class="selectItem" id="selectTruthDatasetItem" value="Choose"/>
92
92
</div>
93
- <input type="hidden" name="configItemId" value="<?php echo $ this ->trend ->getConfigItemId (); ?> "/>
94
- <input type="hidden" name="testItemId" value="<?php echo $ this ->trend ->getTestDatasetId (); ?> "/>
95
- <input type="hidden" name="truthItemId" value="<?php echo $ this ->trend ->getTruthDatasetId (); ?> "/>
96
- <input type="hidden" name="trendId" value="<?php echo $ this ->trend ->getKey (); ?> "/>
93
+ <input type="hidden" name="configItemId" value="<?php echo $ this ->escape ( $ this -> trend ->getConfigItemId () ); ?> "/>
94
+ <input type="hidden" name="testItemId" value="<?php echo $ this ->escape ( $ this -> trend ->getTestDatasetId () ); ?> "/>
95
+ <input type="hidden" name="truthItemId" value="<?php echo $ this ->escape ( $ this -> trend ->getTruthDatasetId () ); ?> "/>
96
+ <input type="hidden" name="trendId" value="<?php echo $ this ->escape ( $ this -> trend ->getKey () ); ?> "/>
97
97
98
98
<div class="submitButtonContainer">
99
99
<input type="submit" class="globalButton" value="Save"/>
0 commit comments