mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#127: string-escape user-input from quickstart
This commit is contained in:
parent
64df1ae6be
commit
38ae883e97
@ -642,6 +642,12 @@ directly.'''
|
|||||||
mkdir_p(path.join(srcdir, d['dot'] + 'templates'))
|
mkdir_p(path.join(srcdir, d['dot'] + 'templates'))
|
||||||
mkdir_p(path.join(srcdir, d['dot'] + 'static'))
|
mkdir_p(path.join(srcdir, d['dot'] + 'static'))
|
||||||
|
|
||||||
|
def escape(key):
|
||||||
|
d[key] = d[key].encode('string-escape')
|
||||||
|
for key in ('project', 'copyright', 'version', 'release',
|
||||||
|
'master', 'suffix'):
|
||||||
|
escape(key)
|
||||||
|
|
||||||
conf_text = QUICKSTART_CONF % d
|
conf_text = QUICKSTART_CONF % d
|
||||||
if d['ext_intersphinx'].upper() in ('Y', 'YES'):
|
if d['ext_intersphinx'].upper() in ('Y', 'YES'):
|
||||||
conf_text += INTERSPHINX_CONFIG
|
conf_text += INTERSPHINX_CONFIG
|
||||||
|
Loading…
Reference in New Issue
Block a user