gkrid / dokuwiki-plugin-approve

GNU General Public License v2.0
4 stars 17 forks source link

Plugin is showing backslashes ("\") instead of colons (":") #22

Closed brsomartins closed 4 years ago

brsomartins commented 4 years ago

For some reason, the Approve plugin isn't working properly on my DokuWiki installation. It only works on pages located in the root namespace.

By placing the syntax component on a page, I could realize that backslashes (\) are shown instead of colons (:) and that hyperlinks to pages are broken.

image

With that in mind, I took a look at the code and found out that there are two replacement occurrences of / with : on that:

  1. https://github.com/gkrid/dokuwiki-plugin-approve/blob/0c60a293fb92117ae4211b9e6d37af69354c10f0/admin.php#L41
  2. https://github.com/gkrid/dokuwiki-plugin-approve/blob/0c60a293fb92117ae4211b9e6d37af69354c10f0/action/migration.php#L85

After replacing / with \\ in my files, the plugin started working as expected.

image

I'm not sure why this is happening on my installation, but I've considered important reporting the issue.

By the way, I'm running DokuWiki on a Windows 10 machine with AMPPS.

brsomartins commented 4 years ago

I've just tested the same scenario in a CentOS 7 machine, and I couldn't reproduce the issue. It seems it only happens in Windows or AMPPS environment.

solewniczak commented 4 years ago

@brsomartins pleas try the recent version of the plugin. Now it should support the Windows environment.