FrozenNode / XssInput

A simple extension of the Laravel Input facade that mimics CodeIgniter's xss filtering
41 stars 20 forks source link

Cannot access self:: when no class scope is active #5

Closed DiederikvandenB closed 10 years ago

DiederikvandenB commented 10 years ago

See screenshot. screen shot 2014-02-07 at 17 42 01

Quick workaround is to do this:

return Security::entity_decode($match[0], 'UTF-8');

And then alter the entity_decode function from private to public.

janhartigan commented 10 years ago

If you change it to static it might also work. If you patch that up and issue a PR, I'll merge it in.

DiederikvandenB commented 10 years ago

Will look at that tonight :)

DiederikvandenB commented 10 years ago

Any update on merging this in :)?

janhartigan commented 10 years ago

Merged in now. Thanks again for the PR!