update Piwik to version 2.16 (fixes #91)

This commit is contained in:
oliver 2016-04-10 18:55:57 +02:00
commit d885a4baa9
5833 changed files with 418860 additions and 226988 deletions

View file

@ -1,6 +1,6 @@
<?php
/**
* Piwik - Open source web analytics
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
@ -78,7 +78,9 @@ class Controller extends \Piwik\Plugin\Controller
public function redirect()
{
$url = Common::getRequestVar('url', '', 'string', $_GET);
if (!UrlHelper::isLookLikeUrl($url)) {
die('Please check the &url= parameter: it should to be a valid URL');
}
// validate referrer
$referrer = Url::getReferrer();
if (empty($referrer) || !Url::isLocalUrl($referrer)) {
@ -93,10 +95,7 @@ class Controller extends \Piwik\Plugin\Controller
if (!self::isPiwikUrl($url)) {
Piwik::checkUserHasSomeViewAccess();
}
if (!UrlHelper::isLookLikeUrl($url)) {
die('Please check the &url= parameter: it should to be a valid URL');
}
@header('Content-Type: text/html; charset=utf-8');
Common::sendHeader('Content-Type: text/html; charset=utf-8');
echo '<html><head><meta http-equiv="refresh" content="0;url=' . $url . '" /></head></html>';
exit;
@ -108,7 +107,7 @@ class Controller extends \Piwik\Plugin\Controller
* @param string $url
* @return bool True if valid; false otherwise
*/
static public function isPiwikUrl($url)
public static function isPiwikUrl($url)
{
// guard for IE6 meta refresh parsing weakness (OSVDB 19029)
if (strpos($url, ';') !== false

View file

@ -1,6 +1,6 @@
<?php
/**
* Piwik - Open source web analytics
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
@ -8,28 +8,10 @@
*/
namespace Piwik\Plugins\Proxy;
use Piwik\Version;
/**
* Proxy services for the UI
*
*/
class Proxy extends \Piwik\Plugin
{
/**
* Return information about this plugin.
*
* @see Piwik\Plugin
*
* @return array
*/
public function getInformation()
{
return array(
'description' => 'Proxy services',
'authors' => array(array('name' => 'Piwik', 'homepage' => 'http://piwik.org/')),
'version' => Version::VERSION,
'translationAvailable' => false,
);
}
}

View file

@ -0,0 +1,3 @@
{
"description": "Proxy services"
}