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

Update Response.php #1173

Merged
merged 2 commits into from
Sep 7, 2018
Merged

Update Response.php #1173

merged 2 commits into from
Sep 7, 2018

Conversation

sugenganthos
Copy link
Contributor

Remove {csp-style-nonce} from end page when CSP is not enabled. If page send to user contains {csp-style-nonce} or {csp-style-nonce} then it would not pass html check and says 'no value'.

Needs to check about performance because regex will runs to a whole views regardless of CSP setting.

Remove {csp-style-nonce} from end page when CSP is not enabled. If page send to user contains {csp-style-nonce} or {csp-style-nonce} then it would not pass html check and says 'no value'.

Needs to check about performance because regex will runs to a whole views regardless of CSP setting.
@lonnieezell
Copy link
Member

I'm fine with this PR - but let's use str_replace - it's faster than preg_replace.

@sugenganthos
Copy link
Contributor Author

Okay then, lets use str_replace instead

@lonnieezell lonnieezell merged commit 9bb7a52 into codeigniter4:develop Sep 7, 2018
@sugenganthos sugenganthos deleted the patch-2 branch October 3, 2018 12:50
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.

2 participants