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

Added the posibility to mark data as safe #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

agilegeeks
Copy link

to bypass Codeigniter xss cleaning to improve speed when needed

@mparnelldmp
Copy link

How much does this improve performance?

XSS checks against JSON don't really make sense til decoded, the other fields you could just do is_numeric, and then for the search you'd want XSS checking but otherwise...

@Reve
Copy link

Reve commented Jan 10, 2018

I don't have the exact values right now but from what I recall, there was an increase from 10 seconds to 2 seconds loading time when having a lot of data.

And by using xhprof I found that the XSS cleaning method was being called almost 300.000 times and was the main cause for the delay.

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.

3 participants