Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@

if (!isset($_REQUEST['f']) || empty($_REQUEST['f']))
{
header('Content-type: text/xml');
header('Content-type: text/xml; charset=' . AJAX_ENCODING);
echo '<?xml version="1.0" encoding="', AJAX_ENCODING, '"?>', "\n";
echo(
"<data>\n" .
Expand Down Expand Up @@ -125,7 +125,7 @@

if (!is_readable($filename))
{
header('Content-type: text/xml');
header('Content-type: text/xml; charset=' . AJAX_ENCODING);
echo '<?xml version="1.0" encoding="', AJAX_ENCODING, '"?>', "\n";
echo(
"<data>\n" .
Expand Down
6 changes: 3 additions & 3 deletions ajax/getDataItemJobOrders.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
$output .=
" <joborder>\n" .
" <id>" . $jobOrdersArray[$rowIndex]['jobOrderID'] . "</id>\n" .
" <title>" . htmlspecialchars($jobOrdersArray[$rowIndex]['title']) . "</title>\n" .
" <companyname>" . htmlspecialchars($jobOrdersArray[$rowIndex]['companyName']) . "</companyname>\n" .
" <assigned>" . htmlspecialchars($jobOrdersArray[$rowIndex]['isAssigned']) . "</assigned>\n" .
" <title>" . htmlspecialchars($jobOrdersArray[$rowIndex]['title'], ENT_COMPAT, AJAX_ENCODING) . "</title>\n" .
" <companyname>" . htmlspecialchars($jobOrdersArray[$rowIndex]['companyName'], ENT_COMPAT, AJAX_ENCODING) . "</companyname>\n" .
" <assigned>" . htmlspecialchars($jobOrdersArray[$rowIndex]['isAssigned'], ENT_COMPAT, AJAX_ENCODING) . "</assigned>\n" .
" </joborder>\n";
}

Expand Down
2 changes: 1 addition & 1 deletion lib/AJAXInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AJAXInterface
*/
public function outputXMLPage($xmlString)
{
header('Content-type: text/xml');
header('Content-type: text/xml; charset=' . AJAX_ENCODING);

echo '<?xml version="1.0" encoding="', AJAX_ENCODING, '"?>', "\n";
echo $xmlString;
Expand Down
Loading