Skip to content

Commit 6c6157f

Browse files
committed
Quote src database name before making a URL from it.
1 parent bc4348c commit 6c6157f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

couchdb/tools/replicate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import optparse
2222
import sys
2323
import time
24+
import urllib
2425
import urlparse
2526
import re
2627

@@ -112,7 +113,7 @@ def main():
112113
print "created",
113114
sys.stdout.flush()
114115

115-
sdb = '%s%s' % (sbase, sdb)
116+
sdb = '%s%s' % (sbase, urllib.quote(sdb, ''))
116117
if options.continuous:
117118
target.replicate(sdb, tdb, continuous=options.continuous)
118119
else:

0 commit comments

Comments
 (0)