Skip to content

Commit da4f0d1

Browse files
author
Michael Klier
committed
only allow valid pagenames
Ideally the dokuwiki XMl-RPC API would have a cleanID call to aquire a valid ID
1 parent 4cce903 commit da4f0d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin/dokuvimki.vim

+4
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ class DokuVimKi:
211211
editing or switches to the correct buffer if the is open already.
212212
"""
213213

214+
if wp.find(' ') != --1:
215+
print >>sys.stderr, "Pagenames cannot contain whitespace. Please use valid pagenames only!\nSee http://dokuwiki.org/pagename"
216+
return
217+
214218
if self.diffmode:
215219
self.diff_close()
216220

0 commit comments

Comments
 (0)