Skip to content

Commit

Permalink
nonce Attribute hinzugefügt
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaddade committed Jul 5, 2023
1 parent d5870b6 commit d4e62e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

?>
<div style="width: 80%; background-color: rgb(32, 43, 53)">
<?php echo rex_file::get(rex_addon::get('rexstan')->getDataPath().'/baseline-graph.html'); ?>
<?php echo str_replace('<script>', '<script nonce="'.rex_response::getNonce().'">', rex_file::get(rex_addon::get('rexstan')->getDataPath().'/baseline-graph.html')); ?>

Check failure on line 15 in pages/summary.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4)

Call to an undefined static method rex_response::getNonce().

Check failure on line 15 in pages/summary.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4)

Parameter #3 $subject of function str_replace expects array|string, string|null given.

Check failure on line 15 in pages/summary.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0)

Call to an undefined static method rex_response::getNonce().

Check failure on line 15 in pages/summary.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0)

Parameter #3 $subject of function str_replace expects array|string, string|null given.

Check failure on line 15 in pages/summary.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1)

Call to an undefined static method rex_response::getNonce().

Check failure on line 15 in pages/summary.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1)

Parameter #3 $subject of function str_replace expects array|string, string|null given.

Check failure on line 15 in pages/summary.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2)

Call to an undefined static method rex_response::getNonce().

Check failure on line 15 in pages/summary.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2)

Parameter #3 $subject of function str_replace expects array|string, string|null given.
</div>
<table class="table table-striped table-hover" style="width: auto;">
<tbody>
Expand Down

0 comments on commit d4e62e6

Please sign in to comment.