Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nonce in den Templates ergänzt #67

Merged
merged 1 commit into from
Jan 13, 2023
Merged

Nonce in den Templates ergänzt #67

merged 1 commit into from
Jan 13, 2023

Conversation

dergel
Copy link
Member

@dergel dergel commented Jan 12, 2023

kommt im redaxo core und wird verwendet, sofern verfügbar. Somit keine Abhängigkeit

@dergel dergel requested review from alxndr-w, eaCe and skerbis January 12, 2023 11:55
Copy link
Member

@skerbis skerbis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ungetestet. Aber Nonce finde ich gut.

Copy link
Member

@alxndr-w alxndr-w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ungetestet.

@alxndr-w alxndr-w requested a review from tyrant88 January 13, 2023 15:24
@tyrant88
Copy link
Member

Gute Sache, da kann man in der CSP auf "unsafe-inline" verzichten,

@eaCe
Copy link
Member

eaCe commented Jan 13, 2023

Falsches Repo, aber wäre es sinnvoll das ganze wie bei WP zu handhaben? Also für eigene Requests eigene Nonce erstellen und dann prüfen? Ich sehe nur nicht wie man diese in REDAXO prüft?

$nonce = wp_create_nonce( 'my_nonce');
....
if (!wp_verify_nonce( $_REQUEST['nonce'], 'my_nonce')) { ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants