| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | |
| 24 | 24 | if ( 'gradient' === $type && $isGradient ) { |
| 25 | 25 | $styles = self::isValidCSS('background', $gradient); |
| 26 | 26 | } elseif ( 'image' === $type && $isImage ) { |
| 27 | - $imgUrl = $image['url'] ?? ''; | |
| 27 | + $imgUrl = esc_url( $image['url'] ?? '' ); | |
| 28 | 28 | $styles = "background: url($imgUrl);" |
| 29 | 29 | . self::isValidCSS('background-color', $overlayColor) |
| 30 | 30 | . self::isValidCSS('background-position', $position) |
| 31 | 31 | . self::isValidCSS('background-size', $size) |