Skip to content

Commit

Permalink
only allow valid pagenames
Browse files Browse the repository at this point in the history
	Ideally the dokuwiki XMl-RPC API would have a cleanID
	call to aquire a valid ID
  • Loading branch information
Michael Klier committed Jul 29, 2010
1 parent 4cce903 commit da4f0d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/dokuvimki.vim
Expand Up @@ -211,6 +211,10 @@ class DokuVimKi:
editing or switches to the correct buffer if the is open already.
"""

if wp.find(' ') != --1:
print >>sys.stderr, "Pagenames cannot contain whitespace. Please use valid pagenames only!\nSee http://dokuwiki.org/pagename"
return

if self.diffmode:
self.diff_close()

Expand Down

0 comments on commit da4f0d1

Please sign in to comment.