PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / 2.4.5
Fluent Support – Helpdesk & Customer Support Ticket System v2.4.5
2.4.5 2.4.0 2.3.2 2.3.1 2.3.0 2.2.1 2.2.0 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.4.0 1.4.1 1.4.2 1.4.5 1.4.6 1.4.7 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 All 69 releases
← All changes | app/Services/Emogrifier.php +14 -3 1.4.2 → 2.4.5 View file →
@@ -769,9 +769,9 @@
769 769 self::CACHE_KEY_CSS_DECLARATIONS_BLOCK,
770 770 self::CACHE_KEY_COMBINED_STYLES,
771 771 ];
772 772 if (!in_array($key, $allowedCacheKeys, true)) {
773 - throw new \InvalidArgumentException('Invalid cache key: ' . $key, 1391822035);
773 + throw new \InvalidArgumentException('Invalid cache key: ' . esc_html($key), 1391822035);
774 774 }
775 775
776 776 $this->caches[$key] = [];
777 777 }
@@ -1805,9 +1805,15 @@
1805 1805 }
1806 1806
1807 1807 if ($selector !== '') {
1808 1808 throw new \InvalidArgumentException(
1809 - sprintf('%1$s in selector >> %2$s << in %3$s on line %4$u', $message, $selector, $file, $line),
1809 + sprintf(
1810 + '%1$s in selector >> %2$s << in %3$s on line %4$u',
1811 + esc_html($message),
1812 + esc_html($selector),
1813 + esc_html($file),
1814 + (int) $line
1815 + ),
1810 1816 1509279985
1811 1817 );
1812 1818 }
1813 1819
@@ -1813,9 +1819,14 @@
1813 1819
1814 1820 // Catches eventual warnings generated by method getAllNodesWithStyleAttribute()
1815 1821 if (isset($context['xPath'])) {
1816 1822 throw new \RuntimeException(
1817 - sprintf('%1$s in %2$s on line %3$u', $message, $file, $line),
1823 + sprintf(
1824 + '%1$s in %2$s on line %3$u',
1825 + esc_html($message),
1826 + esc_html($file),
1827 + (int) $line
1828 + ),
1818 1829 1509280067
1819 1830 );
1820 1831 }
1821 1832