PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.15
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.15
6.2.15 6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 All 197 releases
← All changes | app/Services/Browser/Browser.php +3 -1 3.6.60 → 6.2.15 View file →
@@ -1,8 +1,10 @@
1 1 <?php
2 2
3 3 namespace FluentForm\App\Services\Browser;
4 4
5 +defined('ABSPATH') or die;
6 +
5 7 /**
6 8 * File: Browser.php
7 9 * Author: Chris Schuld (http://chrisschuld.com/)
8 10 * Last Modified: July 22nd, 2016
@@ -160,9 +162,9 @@
160 162 * Reset all properties
161 163 */
162 164 public function reset()
163 165 {
164 - $this->_agent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "";
166 + $this->_agent = sanitize_text_field(wpFluentForm('request')->server('HTTP_USER_AGENT'));
165 167 $this->_browser_name = self::BROWSER_UNKNOWN;
166 168 $this->_version = self::VERSION_UNKNOWN;
167 169 $this->_platform = self::PLATFORM_UNKNOWN;
168 170 $this->_os = self::OPERATING_SYSTEM_UNKNOWN;