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

Unterminated entity reference #6

Open
srms-fr opened this issue Apr 15, 2024 · 1 comment
Open

Unterminated entity reference #6

srms-fr opened this issue Apr 15, 2024 · 1 comment

Comments

@srms-fr
Copy link

srms-fr commented Apr 15, 2024

Hi,

Could you look about this one :

[2024-04-12T11:30:18.129137+02:00] xmpp.DEBUG: Received buffer '<presence from='user/jabber_13405' to='test@domain.com' xml:lang='en'><priority>5</priority><x var='128' xmlns='http://webex.com/connect/customstatus'/><systemstatuschange xmlns='urn:xmpp:systemstatuschange'/><c hash='sha-1' node='http://protocols.cisco.com/jabber?v=14.1.4&amp;p=win' ver='XekFR/TSudu/1muDk2LJS/aBBFg=' xmlns='http://jabber.org/protocol/caps'/></presence>' from 'tcp://xmpp.domain.com:5222' [] []
PHP Warning:  Fabiang\Xmpp\Stream\XMLStream::createAttributeNodes(): unterminated entity reference           p=win in /.../vendor/zorn-v/xmpp/src/Stream/XMLStream.php on line 283

I'm not shure, but value of a DOMAttr seems to need to be protected by htmlentities().

Thanks

@zorn-v
Copy link
Owner

zorn-v commented Apr 15, 2024

Fixed in v1.0.1 c49e4d1

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

No branches or pull requests

2 participants