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

installmodx.php: < and > must be encoded in config.xml #6

Open
fireproofsocks opened this issue Jun 13, 2013 · 0 comments
Open

installmodx.php: < and > must be encoded in config.xml #6

fireproofsocks opened this issue Jun 13, 2013 · 0 comments
Labels

Comments

@fireproofsocks
Copy link
Member

If you use a < or a > in an XML field (e.g. as part of your password), the values must be encoded.

Is there a PHP function for this? What values need fixing?

http://stackoverflow.com/questions/2822774/php-is-htmlentities-sufficient-for-creating-xml-safe-values
http://msdn.microsoft.com/en-us/library/wkc3acws(VS.71).aspx

I've gone for this: htmlspecialchars($string,ENT_NOQUOTES)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant