changeset 4389:c5268cc28125

GUI editor: fix crash when editing a page with non-ASCII pagename and inserting a link
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 09 Oct 2008 21:44:07 +0200
parents 60d487171827
children df4c0a1fa898 3e019f6ae381
files MoinMoin/action/fckdialog.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/fckdialog.py	Sat Oct 04 23:02:49 2008 +0200
+++ b/MoinMoin/action/fckdialog.py	Thu Oct 09 21:44:07 2008 +0200
@@ -246,8 +246,8 @@
     if not scriptname or scriptname[-1] != "/":
         scriptname += "/"
     action = scriptname
-    basepage = request.page.page_name.encode(config.charset)
-    request.write('''
+    basepage = request.page.page_name
+    request.write(u'''
 <!--
  * FCKeditor - The text editor for internet
  * Copyright (C) 2003-2004 Frederico Caldeira Knabben