Giter Club home page Giter Club logo

Comments (5)

silvioprog avatar silvioprog commented on July 19, 2024

All the online demos are very simple, but you can update it for strip all HTML/XML scripts. The online chat demo (http://brookframework.org/demos/others/chat/cgi1.fbf) don't allow HTML/XML scripts, please test it.

Can you open a pull request with updated demos? We would be very grateful! :)

ps. In chat demo I used the RUtils.StripHTMLMarkup (https://github.com/silvioprog/rutils/blob/master/src/rutils.pas#L106).

from brookframework.

ik5 avatar ik5 commented on July 19, 2024

I'll require some time to learn the code, and I'll for the project and add it :)
I think it's very important to educate people to work properly, and secure, even when things are considered to be simple.

from brookframework.

silvioprog avatar silvioprog commented on July 19, 2024

I fully agree. :)

Please feel free to implement it.

from brookframework.

silvioprog avatar silvioprog commented on July 19, 2024

Fixed (47e1455).

Please test it and close if OK. ;)

Thank you! :)

ps. I'll update online demos as soon.

from brookframework.

ik5 avatar ik5 commented on July 19, 2024

Obrigado,

You do not have to strip HTML elements, just escape them :)
I looked at the source code, and it looks ok.

from brookframework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.