Skip to content

Commit

Permalink
Echo XML declaration for compatibility with PHP's short open tag option
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasmboelz committed Aug 10, 2024
1 parent d6ab4d7 commit 90fd9c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/opensearch.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php header('Content-Type: application/opensearchdescription+xml; charset=utf-8'); ?>
<?xml version="1.0"?>
<?php echo '<?xml version="1.0"?>' . "\n"; ?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>FreshPorts</ShortName>
<Image width="16" height="16" type="image/x-icon"><?php echo 'https://' . $_SERVER['HTTP_HOST'] . '/favicon.ico' ?></Image>
Expand Down

0 comments on commit 90fd9c8

Please sign in to comment.