Skip to content

Commit

Permalink
build v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sualko committed May 30, 2017
1 parent a83bcff commit 4f06de9
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<name>Piwik Tracking</name>
<summary>Track users with piwik</summary>
<description>Track users with piwik</description>
<version>0.3.0</version>
<version>0.3.1</version>
<licence>agpl</licence>
<author>Klaus Herberth</author>
<category>tools</category>
Expand Down
2 changes: 1 addition & 1 deletion appinfo/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.3.1
10 changes: 7 additions & 3 deletions build/appinfo/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@
$piwik = json_decode(OCP\Config::getAppValue('piwik', 'piwik'));
$url = parse_url($piwik->url, PHP_URL_HOST);

if (array_key_exists('HTTP_HOST', $_SERVER) && $_SERVER['HTTP_HOST'] !== $url) {
$policy = new OCP\AppFramework\Http\ContentSecurityPolicy ();
$policy = new OCP\AppFramework\Http\ContentSecurityPolicy ();
$policy->addAllowedScriptDomain('\'self\'');
$policy->addAllowedImageDomain('\'self\'');

if ($url !== false && array_key_exists('HTTP_HOST', $_SERVER) && $_SERVER['HTTP_HOST'] !== $url) {
$policy->addAllowedScriptDomain($url);
$policy->addAllowedImageDomain($url);
\OC::$server->getContentSecurityPolicyManager()->addDefaultPolicy($policy);
}

\OC::$server->getContentSecurityPolicyManager()->addDefaultPolicy($policy);
}
OCP\Util::addScript ( 'piwik', 'track' );

Expand Down
2 changes: 1 addition & 1 deletion build/appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<name>Piwik Tracking</name>
<summary>Track users with piwik</summary>
<description>Track users with piwik</description>
<version>0.3.0</version>
<version>0.3.1</version>
<licence>agpl</licence>
<author>Klaus Herberth</author>
<category>tools</category>
Expand Down
2 changes: 1 addition & 1 deletion build/appinfo/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.0
0.3.1
4 changes: 2 additions & 2 deletions build/js/settings-admin.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*!
* owncloud_piwik v0.3.0 - 2017-05-29
* owncloud_piwik v0.3.1 - 2017-05-30
*
* Copyright (c) 2017 Klaus Herberth <[email protected]> <br>
* Released under the MIT license
*
* Please see https://github.com/sualko/owncloud_piwik
*
* @author Klaus Herberth <[email protected]>
* @version 0.3.0
* @version 0.3.1
* @license MIT
*/

Expand Down
4 changes: 2 additions & 2 deletions build/js/track.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*!
* owncloud_piwik v0.3.0 - 2017-05-29
* owncloud_piwik v0.3.1 - 2017-05-30
*
* Copyright (c) 2017 Klaus Herberth <[email protected]> <br>
* Released under the MIT license
*
* Please see https://github.com/sualko/owncloud_piwik
*
* @author Klaus Herberth <[email protected]>
* @version 0.3.0
* @version 0.3.1
* @license MIT
*/

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "owncloud_piwik",
"version": "0.3.0",
"version": "0.3.1",
"description": "Track owncloud/nextcloud users with piwik",
"repository": {
"type": "git",
Expand Down

0 comments on commit 4f06de9

Please sign in to comment.