Skip to content

Commit 5110bfd

Browse files
committed
Security fix + translations
Security fix (XSS vulnerability) + several updated translations: Portuguese (Brazil), Italian, Albanian
1 parent c892133 commit 5110bfd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+5150
-5585
lines changed

Diff for: classes/WP_Piwik.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class WP_Piwik {
1212
*
1313
* @var Runtime environment variables
1414
*/
15-
private static $revisionId = 2015092001, $version = '1.0.4', $blog_id, $pluginBasename = NULL, $logger, $settings, $request;
15+
private static $revisionId = 2015101201, $version = '1.0.5', $blog_id, $pluginBasename = NULL, $logger, $settings, $request;
1616

1717
/**
1818
* Constructor class to configure and register all WP-Piwik components

Diff for: classes/WP_Piwik/Admin/Settings.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -538,11 +538,9 @@ public function extendAdminHeader() {
538538
*/
539539
public function showCredits() {
540540
?>
541-
<p><strong><?php _e('Thank you very much for your donation', 'wp-piwik'); ?>:</strong> Marco L., Rolf W., Tobias U., Lars K., Donna F., Kevin D., Ramos S., Thomas M., John C., Andreas G., Ben M., Myra R. I., Carlos U. R.-S., Oleg I., M. N., Daniel K., James L., Jochen K., Cyril P., Thomas K., Patrik K., <?php _e('the Piwik team itself','wp-piwik');?><?php _e(', and all people flattering this','wp-piwik'); ?>!</p>
541+
<p><strong><?php _e('Thank you very much for your donation', 'wp-piwik'); ?>:</strong> Marco L., Rolf W., Tobias U., Lars K., Donna F., Kevin D., Ramos S., Thomas M., John C., Andreas G., Ben M., Myra R. I., Carlos U. R.-S., Oleg I., M. N., Daniel K., James L., Jochen K., Cyril P., Thomas K., Patrik K., Zach, Sebastian W., Peakkom, Patrik K., <?php _e('the Piwik team itself','wp-piwik');?><?php _e(', and all people flattering this','wp-piwik'); ?>!</p>
542542
<p><?php _e('Graphs powered by <a href="http://www.jqplot.com/">jqPlot</a> (License: GPL 2.0 and MIT) and <a href="http://omnipotent.net/jquery.sparkline/">jQuery Sparklines</a> (License: New BSD License).','wp-piwik'); ?></p>
543-
<p><?php _e('Metabox support inspired by', 'wp-piwik'); echo ' <a href="http://www.code-styling.de/english/how-to-use-wordpress-metaboxes-at-own-plugins">Heiko Rabe\'s metabox demo plugin</a>.';?></p>
544-
<p><?php _e('Tabbed settings page suggested by the', 'wp-piwik'); echo' <a href="http://wp.smashingmagazine.com/2011/10/20/create-tabs-wordpress-settings-pages/">Smashing Magazine</a>.';?></p>
545-
<p><?php _e('Thank you very much','wp-piwik'); ?>, Besnik Bleta, FatCow, Rene, Fab, EzBizNiz, Gormer, Natalya, AggelioPolis, Web Hosting Geeks, Web Hosting Rating, Nata Strazda (Web Hosting Hub), Hossein (LibreOffice localization team), Ste &amp; Chris <?php _e('for your translation work','wp-piwik'); ?>!</p>
543+
<p><?php _e('Thank you very much','wp-piwik'); ?> <a href="https://www.transifex.com/projects/p/wp-piwik/">Transifex Translation Community</a> <?php _e('for your translation work','wp-piwik'); ?>!</p>
546544
<p><?php _e('Thank you very much, all users who send me mails containing criticism, commendation, feature requests and bug reports! You help me to make WP-Piwik much better.','wp-piwik'); ?></p>
547545
<p><?php _e('Thank <strong>you</strong> for using my plugin. It is the best commendation if my piece of code is really used!','wp-piwik'); ?></p>
548546
<?php

Diff for: classes/WP_Piwik/Widget/Search.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public function show() {
2727
$count = 0;
2828
foreach ($response as $row) {
2929
$count++;
30-
$tableBody[] = array($row['label'], $row['nb_visits'], $row['bounce_rate']);
30+
$tableBody[] = array(htmlentities($row['label']), $row['nb_visits'], $row['bounce_rate']);
3131
if ($count == 10) break;
3232
}
3333
$this->table($tableHead, $tableBody, null);
3434
}
3535
}
3636

37-
}
37+
}

Diff for: languages/wp-piwik-az_AZ.mo

15 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)