← All changes
|
src/Views/Form/Templates/Sequoia/sections/progress-bar.php
+3
-2
4.15.3
→
4.17.0
View file →
| @@ -1,7 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | + * @since 4.16.3 Escaped the goal color when rendering the progress bar. | |
| 5 | + * | |
| 4 | 6 | * @var int $formId |
| 5 | 7 | */ |
| 6 | 8 | if ($form->has_goal()) : ?> |
| 7 | 9 | <?php |
| @@ -15,10 +17,9 @@ | ||
| 15 | 17 | ?> |
| 16 | 18 | <div class="progress-bar"> |
| 17 | 19 | <div class="give-progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="<?php |
| 18 | 20 | echo $goalStats['progress']; ?>"> |
| 19 | - <span style="<?php | |
| 20 | - echo $style; ?>"></span> | |
| 21 | + <span style="<?php echo esc_attr($style); ?>"></span> | |
| 21 | 22 | </div><!-- /.give-progress-bar --> |
| 22 | 23 | </div> |
| 23 | 24 | <?php |
| 24 | 25 | endif; ?> |