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

Content fields corrupt with double quotes (") #50

Closed
dzs opened this issue Jan 27, 2013 · 3 comments
Closed

Content fields corrupt with double quotes (") #50

dzs opened this issue Jan 27, 2013 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dzs
Copy link

dzs commented Jan 27, 2013

TXT records don't seem to be edited or saved correctly with double-quotes ". This is a problem with SPF records imported as TXT from bind. A TXT field in the database with content like this:

"spf2.0/pra,mfrom +ip4:1.2.3.0/24 +ip4:4.5.6.0/24 ?all"

Will be displayed in PowerDNS "edit" with backslashes, although sometimes the ending double-quote will be missing.

"spf2.0/pra,mfrom +ip4:1.2.3.0/24 +ip4:4.5.6.0/24 ?all"

Saving this causes duplicate backslashes to appear the next time it's edited:

\"spf2.0/pra,mfrom +ip4:1.2.3.0/24 +ip4:4.5.6.0/24 ?all\"

And worse, a query to PowerDNS returns embedded 's:

example.org. 3600 IN TXT ""spf2.0/pra,mfrom +ip4:1.2.3.0/24 +ip4:4.5.6.0/24 ?all""

Test environment:
Safari 6.0.2 OSX 10.8.2
PowerDNS 3.1 mysql backend
PowerAdmin 2.1.6
Php 5.3.20

@stbuehler
Copy link
Contributor

sounds a little bit like http://php.net/manual/en/security.magicquotes.php

@ghost ghost added the defect label Feb 26, 2014
@ghost ghost added this to the v2.1.7 milestone Feb 26, 2014
@ghost ghost self-assigned this Feb 26, 2014
@ghost ghost added WIP and removed WIP labels Apr 5, 2014
@ghost ghost modified the milestones: v2.1.8, v2.1.7 Jun 1, 2014
@ghost
Copy link

ghost commented Jun 1, 2014

Will be fixed in 2.1.8

@edmondas edmondas added the question Further information is requested label Mar 16, 2016
@edmondas
Copy link
Contributor

@dzs can you check if you still have this issue with latest code?

@edmondas edmondas self-assigned this Mar 16, 2016
@edmondas edmondas removed the question Further information is requested label Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants