I don't think we ever needed this, except that there's a longstanding
mLib bug which means that newlines (and other whitespace other than
actual space characters) aren't escaped in `lax' mode, which would have
caused the `cdb-map' output to be broken.
Easy fix: turn off lax mode.
try: u = sec.get('user')
except MissingKeyException: pass
else: cdb.add('U%s' % u)
try: u = sec.get('user')
except MissingKeyException: pass
else: cdb.add('U%s' % u)
- url = M.URLEncode(laxp = True, semip = True)
+ url = M.URLEncode(semip = True)
for key in sorted(sec.items()):
if not key.startswith('@'):
for key in sorted(sec.items()):
if not key.startswith('@'):
- url.encode(key, ' '.join(M.split(sec.get(key))[0]))
+ url.encode(key, sec.get(key))
cdb.add(label, url.result)
cdb.add('%AUTO', ' '.join(auto))
cdb.finish()
cdb.add(label, url.result)
cdb.add('%AUTO', ' '.join(auto))
cdb.finish()