Skip to content

Commit

Permalink
Fixed Issue #522. The username and password are now properly quoted b…
Browse files Browse the repository at this point in the history
…efore

being inserted in principals.zcml.
  • Loading branch information
Derrick Hudson committed Dec 16, 2005
1 parent 767872d commit 2864fa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mkzopeinstance.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
import shutil
import sys

from xml.sax.saxutils import quoteattr as xml_quoteattr

import zope

from zope.app.authentication import password
Expand Down Expand Up @@ -212,7 +214,9 @@ def copy_skeleton(self):
software_home = os.path.dirname(os.path.dirname(zope_init))
self.replacements = [
("<<USERNAME>>", options.username),
("<<USERNAME-XMLATTR>>", xml_quoteattr(options.username)),
("<<PASSWORD>>", options.password),
("<<PASSWORD-XMLATTR>>", xml_quoteattr(options.password)),
("<<PASSWORD_MANAGER>>", options.password_manager),
("<<PYTHON>>", sys.executable),
("<<INSTANCE_HOME>>", options.destination),
Expand Down

0 comments on commit 2864fa2

Please sign in to comment.