diff options
author | Andras Timar <atimar@suse.com> | 2013-05-07 14:49:56 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-05-07 15:11:23 +0200 |
commit | c599d2dde1df55d8d743d4eaf3521dbb4db10361 (patch) | |
tree | b65b0bd4d06ea2461a20b030404aabad3eb40835 /to-wiki | |
parent | 87300967302507220e9a33e1f48d73779c584791 (diff) |
fdo#64211 replace / to %2F in HIDs for wiki redirects
Change-Id: I93780b76e17a3b833ef4ee6a50bb0969ab8bb01c
Diffstat (limited to 'to-wiki')
-rwxr-xr-x | to-wiki/wikiconv2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/to-wiki/wikiconv2.py b/to-wiki/wikiconv2.py index 38df61f1df..0ed734d049 100755 --- a/to-wiki/wikiconv2.py +++ b/to-wiki/wikiconv2.py @@ -457,7 +457,7 @@ class Bookmark(ElementBase): self.app = parser.current_app_raw self.target = parser.wiki_page_name self.authoritative = parser.follow_embed - self.redirect = name + self.redirect = name.replace("/", "%2F") def get_all(self): global redirects @@ -1359,7 +1359,7 @@ def write_link(r, target): def write_redirects(): print 'Generating the redirects...' written = {} - # in the first pass, immediately writte the links that are embedded, so that + # in the first pass, immediately write the links that are embedded, so that # we can always point to that source versions for redir in redirects: app = redir[0] |