Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion classes/helpers/FrmStylesHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,18 @@ private static function css_key_is_valid( $key ) {
*
* @since 6.20
*
* @param string $var
* @param mixed $var
* @return bool
*/
private static function css_value_is_valid( $var ) {
if ( is_numeric( $var ) ) {
return true;
}

if ( ! is_string( $var ) ) {
return false;
}

// None of these substrings should be present in any CSS value.
$invalid_substrings = array(
'function(',
Expand Down
Loading