til-schneider / slim-wiki

A slim wiki based on PHP and markdown
MIT License
13 stars 7 forks source link

encoding error: / => %2F #2

Closed fragmentbyte closed 8 years ago

fragmentbyte commented 8 years ago

fragmentbyte commented 8 years ago

In Main.php on line 212:

'path' => $hasContent ? urlencode($currentPath) : null,

change on

'path' => $hasContent ? urldecode($currentPath) : null,
fragmentbyte commented 8 years ago

Fix: https://github.com/til-schneider/slim-wiki/pull/3

til-schneider commented 8 years ago

Your fix #3 would break special characters in directory names. I fixed all encoding problems with directory names (hopefully). See: 127b3bb03a0864dfb0132d18fe6c1764c0810c31

fragmentbyte commented 8 years ago

Thank you. I do not php programmer and do not know all the details.