Giter Club home page Giter Club logo

Comments (7)

ohader avatar ohader commented on August 15, 2024 1

From the sanitizer part it should be possible to declare custom schemes (like xmpp:) already with https://github.com/TYPO3/html-sanitizer/blob/main/src/Behavior/Attr/UriAttrValueBuilder.php#L57-L62
I don't know (yet), what probably is missing on the TYPO3 core side.

I'll add test cases soon for xmpp: in particular to this library based on your provided examples.

from html-sanitizer.

ohader avatar ohader commented on August 15, 2024 1

The change allows using any value that stars with xmpp: in any href attribute. I don't think adding more tests is necessary here.

from html-sanitizer.

Neustradamus avatar Neustradamus commented on August 15, 2024

@ohader: Have you progressed on this ticket?

from html-sanitizer.

ohader avatar ohader commented on August 15, 2024

@Neustradamus Not yet, I did not find a good way to add arbitrary schemes (e.g. https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml) in a flexible way...

from html-sanitizer.

ohader avatar ohader commented on August 15, 2024

I checked IANA assignments and added some additional schemes. Unofficial URIs like whatsapp:, tg: etc. are supposed to be redirected through web APIs like api.whatsapp.com or t.me.

from html-sanitizer.

Neustradamus avatar Neustradamus commented on August 15, 2024

@ohader: Thanks :)

In the test part, you have specify only "message" but all these cases will be good?

from html-sanitizer.

Neustradamus avatar Neustradamus commented on August 15, 2024

@ohader: Thanks a lot for your improvements :)

from html-sanitizer.

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.