Skip to content

Commit

Permalink
Merge pull request #22 from humhub-contrib/fix/script-nonce
Browse files Browse the repository at this point in the history
Fix JavaScript tag attribute "nonce"
  • Loading branch information
luke- authored Nov 15, 2024
2 parents 036de90 + f8f1945 commit 4534e05
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

0.7.8 (Unreleased)
-------------------------
- Enh #22: Fix JavaScript tag attribute "nonce"

0.7.7 (November 13, 2024)
-------------------------
- Enh #20: Use PHP CS Fixer
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "SMS Gateway",
"description": "Allows sms sending on user profiles.",
"keywords": ["sms"],
"version": "0.7.7",
"version": "0.7.8",
"homepage": "https://github.com/humhub-contrib/sms",
"humhub": {
"minVersion": "1.14"
Expand Down
2 changes: 1 addition & 1 deletion views/config/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</div>
</div>

<script <?= Html::setNonce() ?>>
<script <?= Html::nonce() ?>>
// load the proper form if provider selection has changed.
$('.provider-select').change(function () {
$('.submit-button').click()
Expand Down
2 changes: 1 addition & 1 deletion views/send/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<?php $form::end(); ?>

<script <?= Html::setNonce() ?>>
<script <?= Html::nonce() ?>>
// update limiter/ crop limiter text -> Stolen at: http://www.scriptiny.com/2012/09/jquery-input-textarea-limiter/
(function ($) {
$.fn.extend({
Expand Down

0 comments on commit 4534e05

Please sign in to comment.