Switch Xinha editor values from strings to html values so the filtering system won't strip out html tags
This commit is contained in:
@@ -9,9 +9,9 @@ require_once(BASE."include/util.php");
|
|||||||
class testData{
|
class testData{
|
||||||
var $iTestingId;
|
var $iTestingId;
|
||||||
var $iVersionId;
|
var $iVersionId;
|
||||||
var $sWhatWorks;
|
var $shWhatWorks;
|
||||||
var $sWhatDoesnt;
|
var $shWhatDoesnt;
|
||||||
var $sWhatNotTested;
|
var $shWhatNotTested;
|
||||||
var $sTestedRelease;
|
var $sTestedRelease;
|
||||||
var $iDistributionId;
|
var $iDistributionId;
|
||||||
var $sTestedDate;
|
var $sTestedDate;
|
||||||
@@ -42,9 +42,9 @@ class testData{
|
|||||||
{
|
{
|
||||||
$this->iTestingId = $oRow->testingId;
|
$this->iTestingId = $oRow->testingId;
|
||||||
$this->iVersionId = $oRow->versionId;
|
$this->iVersionId = $oRow->versionId;
|
||||||
$this->sWhatWorks = $oRow->whatWorks;
|
$this->shWhatWorks = $oRow->whatWorks;
|
||||||
$this->sWhatDoesnt = $oRow->whatDoesnt;
|
$this->shWhatDoesnt = $oRow->whatDoesnt;
|
||||||
$this->sWhatNotTested = $oRow->whatNotTested;
|
$this->shWhatNotTested = $oRow->whatNotTested;
|
||||||
$this->sTestedDate = $oRow->testedDate;
|
$this->sTestedDate = $oRow->testedDate;
|
||||||
$this->iDistributionId = $oRow->distributionId;
|
$this->iDistributionId = $oRow->distributionId;
|
||||||
$this->sTestedRelease = $oRow->testedRelease;
|
$this->sTestedRelease = $oRow->testedRelease;
|
||||||
@@ -78,8 +78,8 @@ class testData{
|
|||||||
"installs, runs, testedRating, comments, submitterId, queued)".
|
"installs, runs, testedRating, comments, submitterId, queued)".
|
||||||
" VALUES('?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?',".
|
" VALUES('?', '?', '?', '?', '?', '?', '?', '?', '?', '?', '?',".
|
||||||
"'?', '?')",
|
"'?', '?')",
|
||||||
$this->iVersionId, $this->sWhatWorks, $this->sWhatDoesnt,
|
$this->iVersionId, $this->shWhatWorks, $this->shWhatDoesnt,
|
||||||
$this->sWhatNotTested, $this->sTestedDate, $this->iDistributionId,
|
$this->shWhatNotTested, $this->sTestedDate, $this->iDistributionId,
|
||||||
$this->sTestedRelease, $this->sInstalls, $this->sRuns,
|
$this->sTestedRelease, $this->sInstalls, $this->sRuns,
|
||||||
$this->sTestedRating, $this->sComments, $_SESSION['current']->iUserId,
|
$this->sTestedRating, $this->sComments, $_SESSION['current']->iUserId,
|
||||||
$this->sQueued);
|
$this->sQueued);
|
||||||
@@ -123,9 +123,9 @@ class testData{
|
|||||||
comments = '?'
|
comments = '?'
|
||||||
WHERE testingId = '?'",
|
WHERE testingId = '?'",
|
||||||
$this->iVersionId,
|
$this->iVersionId,
|
||||||
$this->sWhatWorks,
|
$this->shWhatWorks,
|
||||||
$this->sWhatDoesnt,
|
$this->shWhatDoesnt,
|
||||||
$this->sWhatNotTested,
|
$this->shWhatNotTested,
|
||||||
$this->sTestedDate,
|
$this->sTestedDate,
|
||||||
$this->iDistributionId,
|
$this->iDistributionId,
|
||||||
$this->sTestedRelease,
|
$this->sTestedRelease,
|
||||||
@@ -357,11 +357,11 @@ class testData{
|
|||||||
function ShowTestResult()
|
function ShowTestResult()
|
||||||
{
|
{
|
||||||
echo '<p><b>What works</b><br />',"\n";
|
echo '<p><b>What works</b><br />',"\n";
|
||||||
echo $this->sWhatWorks;
|
echo $this->shWhatWorks;
|
||||||
echo '<p><b>What does not</b><br />',"\n";
|
echo '<p><b>What does not</b><br />',"\n";
|
||||||
echo $this->sWhatDoesnt;
|
echo $this->shWhatDoesnt;
|
||||||
echo '<p><b>What was not tested</b><br />',"\n";
|
echo '<p><b>What was not tested</b><br />',"\n";
|
||||||
echo $this->sWhatNotTested;
|
echo $this->shWhatNotTested;
|
||||||
echo '<p><b>Additional Comments</b><br />',"\n";
|
echo '<p><b>Additional Comments</b><br />',"\n";
|
||||||
echo $this->sComments;
|
echo $this->sComments;
|
||||||
}
|
}
|
||||||
@@ -500,16 +500,16 @@ class testData{
|
|||||||
|
|
||||||
// What works
|
// What works
|
||||||
echo '<tr valign=top><td class="color0"><b>What works</b></td>',"\n";
|
echo '<tr valign=top><td class="color0"><b>What works</b></td>',"\n";
|
||||||
echo '<td class="color0"><p><textarea cols="80" rows="20" id="Test1" name="sWhatWorks">';
|
echo '<td class="color0"><p><textarea cols="80" rows="20" id="Test1" name="shWhatWorks">';
|
||||||
echo $this->sWhatWorks.'</textarea></p></td></tr>',"\n";
|
echo $this->shWhatWorks.'</textarea></p></td></tr>',"\n";
|
||||||
// What Does not work
|
// What Does not work
|
||||||
echo '<tr valign=top><td class=color1><b>What does not work</b></td>',"\n";
|
echo '<tr valign=top><td class=color1><b>What does not work</b></td>',"\n";
|
||||||
echo '<td class="color0"><p><textarea cols="80" rows="20" id="Test2" name="sWhatDoesnt">';
|
echo '<td class="color0"><p><textarea cols="80" rows="20" id="Test2" name="shWhatDoesnt">';
|
||||||
echo $this->sWhatDoesnt.'</textarea></p></td></tr>',"\n";
|
echo $this->shWhatDoesnt.'</textarea></p></td></tr>',"\n";
|
||||||
// What was not tested
|
// What was not tested
|
||||||
echo '<tr valign=top><td class=color0><b>What was not tested</b></td>',"\n";
|
echo '<tr valign=top><td class=color0><b>What was not tested</b></td>',"\n";
|
||||||
echo '<td class="color0"><p><textarea cols="80" rows="20" id="Test3" name="sWhatNotTested">';
|
echo '<td class="color0"><p><textarea cols="80" rows="20" id="Test3" name="shWhatNotTested">';
|
||||||
echo $this->sWhatNotTested.'</textarea></p></td></tr>',"\n";
|
echo $this->shWhatNotTested.'</textarea></p></td></tr>',"\n";
|
||||||
// Date Tested
|
// Date Tested
|
||||||
echo '<tr valign=top><td class="color1"><b>Date tested </b></td>',"\n";
|
echo '<tr valign=top><td class="color1"><b>Date tested </b></td>',"\n";
|
||||||
echo '<td class="color0"><input type=text name="sTestedDate" value="'.$this->sTestedDate.'" size="20"></td></tr>',"\n";
|
echo '<td class="color0"><input type=text name="sTestedDate" value="'.$this->sTestedDate.'" size="20"></td></tr>',"\n";
|
||||||
@@ -557,13 +557,13 @@ class testData{
|
|||||||
function CheckOutputEditorInput($aValues, $sDistribution="")
|
function CheckOutputEditorInput($aValues, $sDistribution="")
|
||||||
{
|
{
|
||||||
$errors = "";
|
$errors = "";
|
||||||
if (empty($aValues['sWhatWorks']))
|
if (empty($aValues['shWhatWorks']))
|
||||||
$errors .= "<li>Please enter what worked.</li>\n";
|
$errors .= "<li>Please enter what worked.</li>\n";
|
||||||
|
|
||||||
if (empty($aValues['sWhatDoesnt']))
|
if (empty($aValues['shWhatDoesnt']))
|
||||||
$errors .= "<li>Please enter what did not work.</li>\n";
|
$errors .= "<li>Please enter what did not work.</li>\n";
|
||||||
|
|
||||||
if (empty($aValues['sWhatNotTested']))
|
if (empty($aValues['shWhatNotTested']))
|
||||||
$errors .= "<li>Please enter what was not tested.</li>\n";
|
$errors .= "<li>Please enter what was not tested.</li>\n";
|
||||||
|
|
||||||
if (empty($aValues['sTestedDate']))
|
if (empty($aValues['sTestedDate']))
|
||||||
@@ -608,9 +608,9 @@ class testData{
|
|||||||
{
|
{
|
||||||
$this->iTestingId = $aValues['iTestingId'];
|
$this->iTestingId = $aValues['iTestingId'];
|
||||||
$this->iVersionId = $aValues['iVersionId'];
|
$this->iVersionId = $aValues['iVersionId'];
|
||||||
$this->sWhatWorks = $aValues['sWhatWorks'];
|
$this->shWhatWorks = $aValues['shWhatWorks'];
|
||||||
$this->sWhatDoesnt = $aValues['sWhatDoesnt'];
|
$this->shWhatDoesnt = $aValues['shWhatDoesnt'];
|
||||||
$this->sWhatNotTested = $aValues['sWhatNotTested'];
|
$this->shWhatNotTested = $aValues['shWhatNotTested'];
|
||||||
$this->sTestedDate = $aValues['sTestedDate'];
|
$this->sTestedDate = $aValues['sTestedDate'];
|
||||||
$this->iDistributionId = $aValues['iDistributionId'];
|
$this->iDistributionId = $aValues['iDistributionId'];
|
||||||
$this->sTestedRelease = $aValues['sTestedRelease'];
|
$this->sTestedRelease = $aValues['sTestedRelease'];
|
||||||
|
|||||||
Reference in New Issue
Block a user