Skip to content

Commit 7ff0c8d

Browse files
committed
prepare release HttpHeader 1.0.18
1 parent d8094f5 commit 7ff0c8d

File tree

3 files changed

+42
-21
lines changed

3 files changed

+42
-21
lines changed

httpheader.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function onAfterRender()
138138
}
139139

140140
// Replace the hashes in the csp header when set.
141-
$headers = $this->getApplication()->getHeaders();
141+
$headers = Factory::getApplication()->getHeaders();
142142

143143
foreach ($headers as $id => $headerConfiguration)
144144
{
@@ -165,7 +165,7 @@ public function onAfterRender()
165165
$newHeaderValue = str_replace('{style-hashes}', '', $newHeaderValue);
166166
}
167167

168-
$this->getApplication()->setHeader($headerConfiguration['name'], $newHeaderValue, true);
168+
Factory::getApplication()->setHeader($headerConfiguration['name'], $newHeaderValue, true);
169169
}
170170
}
171171
}
@@ -271,12 +271,12 @@ private function setStaticHeaders()
271271
$header = $headerAndClient[0];
272272
$client = isset($headerAndClient[1]) ? $headerAndClient[1] : 'both';
273273

274-
if (!$this->getApplication()->isClient($client) && $client != 'both')
274+
if (!Factory::getApplication()->isClient($client) && $client != 'both')
275275
{
276276
continue;
277277
}
278278

279-
$this->getApplication()->setHeader($header, $value, true);
279+
Factory::getApplication()->setHeader($header, $value, true);
280280
}
281281
}
282282

@@ -300,7 +300,7 @@ private function setCspHeader()
300300
foreach ($cspValues as $cspValue)
301301
{
302302
// Handle the client settings foreach header
303-
if (!$this->getApplication()->isClient($cspValue->client) && $cspValue->client != 'both')
303+
if (!Factory::getApplication()->isClient($cspValue->client) && $cspValue->client != 'both')
304304
{
305305
continue;
306306
}
@@ -334,6 +334,6 @@ private function setCspHeader()
334334
return;
335335
}
336336

337-
$this->getApplication()->setHeader($csp, implode('; ', $newCspValues));
337+
Factory::getApplication()->setHeader($csp, implode('; ', $newCspValues));
338338
}
339339
}

httpheader.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<extension version="3.10" type="plugin" group="system" method="upgrade">
33
<name>plg_system_httpheader</name>
4-
<creationDate>2021-08-21</creationDate>
4+
<creationDate>2025-10-25</creationDate>
55
<author>Tobias Zulauf</author>
66
<copyright>(C) 2017 - 2021 Tobias Zulauf All rights reserved.</copyright>
77
<authorUrl>https://www.jah-tz.de</authorUrl>
8-
<version>1.0.17</version>
8+
<version>1.0.18</version>
99
<license>GNU/GPL Version 2 or later</license>
1010
<description>PLG_SYSTEM_HTTPHEADER_XML_DESCRIPTION</description>
1111
<scriptfile>script.php</scriptfile>

update.xml

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<?xml version="1.0" ?>
22
<updates>
33
<update>
4-
<name>HttpHeader 1.0.17</name>
4+
<name>HttpHeader 1.0.18</name>
55
<description>HttpHeader Plugin</description>
66
<element>httpheader</element>
77
<type>plugin</type>
88
<folder>system</folder>
99
<client>site</client>
10-
<version>1.0.17</version>
10+
<version>1.0.18</version>
1111
<infourl title="HttpHeader Plugin">https://github.com/zero-24/plg_system_httpheader</infourl>
1212
<downloads>
13-
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.17/plg_system_httpheader.zip</downloadurl>
13+
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.18/plg_system_httpheader.zip</downloadurl>
1414
</downloads>
15-
<sha512>a73f72995351caac8ff8f02f8d5bb3eae964a52dc376efc4d5d01813e884a714320dea10e52a6333c8d19ac74cba220f4b73255ccf550d4187c3b32166a707ca</sha512>
15+
<sha512>d1cadf746aadc82de52b947306a203659b04b15e8640ed720a09479f24cc374ec55aef934422de4e543d49d23e531fadada1f358e0d35ab8254291cdcb013d0f</sha512>
1616
<tags>
1717
<tag>stable</tag>
1818
</tags>
@@ -22,18 +22,18 @@
2222
<targetplatform name="joomla" version="3.([89]|10)"/>
2323
</update>
2424
<update>
25-
<name>HttpHeader 1.0.17</name>
25+
<name>HttpHeader 1.0.18</name>
2626
<description>HttpHeader Plugin</description>
2727
<element>httpheader</element>
2828
<type>plugin</type>
2929
<folder>system</folder>
3030
<client>site</client>
31-
<version>1.0.17</version>
31+
<version>1.0.18</version>
3232
<infourl title="HttpHeader Plugin">https://github.com/zero-24/plg_system_httpheader</infourl>
3333
<downloads>
34-
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.17/plg_system_httpheader.zip</downloadurl>
34+
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.18/plg_system_httpheader.zip</downloadurl>
3535
</downloads>
36-
<sha512>a73f72995351caac8ff8f02f8d5bb3eae964a52dc376efc4d5d01813e884a714320dea10e52a6333c8d19ac74cba220f4b73255ccf550d4187c3b32166a707ca</sha512>
36+
<sha512>d1cadf746aadc82de52b947306a203659b04b15e8640ed720a09479f24cc374ec55aef934422de4e543d49d23e531fadada1f358e0d35ab8254291cdcb013d0f</sha512>
3737
<tags>
3838
<tag>stable</tag>
3939
</tags>
@@ -43,24 +43,45 @@
4343
<targetplatform name="joomla" version="4.[01234]"/>
4444
</update>
4545
<update>
46-
<name>HttpHeader 1.0.17</name>
46+
<name>HttpHeader 1.0.18</name>
4747
<description>HttpHeader Plugin</description>
4848
<element>httpheader</element>
4949
<type>plugin</type>
5050
<folder>system</folder>
5151
<client>site</client>
52-
<version>1.0.17</version>
52+
<version>1.0.18</version>
5353
<infourl title="HttpHeader Plugin">https://github.com/zero-24/plg_system_httpheader</infourl>
5454
<downloads>
55-
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.17/plg_system_httpheader.zip</downloadurl>
55+
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.18/plg_system_httpheader.zip</downloadurl>
5656
</downloads>
57-
<sha512>a73f72995351caac8ff8f02f8d5bb3eae964a52dc376efc4d5d01813e884a714320dea10e52a6333c8d19ac74cba220f4b73255ccf550d4187c3b32166a707ca</sha512>
57+
<sha512>d1cadf746aadc82de52b947306a203659b04b15e8640ed720a09479f24cc374ec55aef934422de4e543d49d23e531fadada1f358e0d35ab8254291cdcb013d0f</sha512>
5858
<tags>
5959
<tag>stable</tag>
6060
</tags>
6161
<maintainer>Tobias Zulauf</maintainer>
6262
<maintainerurl>https://www.jah-tz.de</maintainerurl>
6363
<php_minimum>7.2.5</php_minimum>
64-
<targetplatform name="joomla" version="5.[0123]"/>
64+
<targetplatform name="joomla" version="5.[01234]"/>
65+
</update>
66+
<update>
67+
<name>HttpHeader 1.0.18</name>
68+
<description>HttpHeader Plugin</description>
69+
<element>httpheader</element>
70+
<type>plugin</type>
71+
<folder>system</folder>
72+
<client>site</client>
73+
<version>1.0.18</version>
74+
<infourl title="HttpHeader Plugin">https://github.com/zero-24/plg_system_httpheader</infourl>
75+
<downloads>
76+
<downloadurl type="full" format="zip">https://github.com/zero-24/plg_system_httpheader/releases/download/1.0.18/plg_system_httpheader.zip</downloadurl>
77+
</downloads>
78+
<sha512>d1cadf746aadc82de52b947306a203659b04b15e8640ed720a09479f24cc374ec55aef934422de4e543d49d23e531fadada1f358e0d35ab8254291cdcb013d0f</sha512>
79+
<tags>
80+
<tag>stable</tag>
81+
</tags>
82+
<maintainer>Tobias Zulauf</maintainer>
83+
<maintainerurl>https://www.jah-tz.de</maintainerurl>
84+
<php_minimum>7.2.5</php_minimum>
85+
<targetplatform name="joomla" version="6.0"/>
6586
</update>
6687
</updates>

0 commit comments

Comments
 (0)