Not logged in. · Lost password · Register
Forum: General Help and Support General Stuff RSS
[solved] External links being corrupted
Avatar
MartinR #1
Member since Jul 2015 · 137 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Subject: [solved] External links being corrupted
I'm running DW on a workstation: CPU: Dual Core Intel Core i3-4150 (-MT MCP-) speed/min/max: 3269/800/3500 MHz Kernel: 3.10.0-957.1.3.el7.x86_64 x86_64, Mem: 7691.8 MiB  Storage: 3.64 TiB and accessing it from the same machine.  OS is CentOS Linux release 7.6.1810.  Browser is Firefox Quantum 60.4.0esr (64-bit).

DW is Release 2017-02-19e "Frusterick Manners", skin is Vector

I wish to have a list of relevant documentation links for the plugins installed.  I've simplified the problem to
[[https://www.dokuwiki.org/plugin:acl]]

[[https://www.dokuwiki.org/plugin:authad]]

[[http://www.dokuwiki.org/plugin:authldap]]

[[http://www.dokuwiki.org/plugin:authmysql]]

There seems to be an issue though with DW changing http:// (snd the https equivalent) to http:<i> or http:</i> where there are multiple external links in a list.  The original problem showed itself when the links were below each other in a three column table, they were effectively spaced out in the source.  The above four lines translate to (with the removal of <p>-</p> pairs):
<a href="https://www.dokuwiki.org/plugin:acl" class="urlextern" title="https://www.dokuwiki.org/plugin:acl" rel="nofollow">https://www.dokuwiki.org/plugin:acl</a>
<a href="https://www.dokuwiki.org/plugin:authad" class="urlextern" title="https://www.dokuwiki.org/plugin:authad" rel="nofollow">https://www.dokuwiki.org/plugin:authad</a>
<a href="http://www.dokuwiki.org/plugin:authldap" class="urlextern" title="http://www.dokuwiki.org/plugin:authldap" rel="nofollow">http://www.dokuwiki.org/plugin:authldap</a>
<a href="http://www.dokuwiki.org/plugin:authmysql" class="urlextern" title="http://www.dokuwiki.org/plugin:authmysql" rel="nofollow">http://www.dokuwiki.org/plugin:authmysql</a>
according to Firefox's Page source tool.  However the displayed output shows lines 2 and 4 in italics and although the link symbol is shown at the end of the lines the last three lines link to:
<nothing>

http:localhost/dokuwiki/</i>www.dokuwiki.org/plugin:authldap

http:localhost/dokuwiki/<i>www.dokuwiki.org/plugin:authmysql{/code]

I've traced the problem to the two lines:[code]<script type="text/javascript" charset="utf-8" src="/dokuwiki/lib/exe/jquery.php?tseed=23f888679b4f1dc26eef34902aca964f"></script>
<script type="text/javascript" charset="utf-8" src="/dokuwiki/lib/exe/js.php?t=vector&amp;tseed=566adbb04c2cf76f8e4dc66ef9d5e594"></script>
  If either line is removed the problem goes away.  I'm a bit stuck going further, does anyone know why this is happening?


The problem is with the Wiki-Style Script plugin.  As soon as the plugin is disabled the problem goes away, but then I can't format titles properly!  I'll raise this on the plugin page.
This post was edited on 2019-01-07, 23:27 by MartinR.
Avatar
Michaelsy #2
Member since Jun 2015 · 887 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
The problem is with the Wiki-Style Script plugin.  As soon as the plugin is disabled the problem goes away, but then I can't format titles properly!  I'll raise this on the plugin page

Thanks for sharing your experience. I think there is a good chance that this bug will be fixed.

BTW: "Wiki-Style Script Plugin" => https://www.dokuwiki.org/plugin:wikistyle2html
(a bit difficult to find via the official name of the plugin)
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
MartinR #3
Member since Jul 2015 · 137 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
For information:

The "Wiki-Style Script Plugin" runs in two parts: server- and client-side.  The server-side protects certain structures (currently %%...%% and <nowiki>...</nowiki> by enclosing them in <span class="wss-nowiki-section">...</span>.  When the client-side runs it replaces all wiki-style syntax unless it is protected by a wss-nowiki-section as above.  Currently https?:// is not recognised, ergo the client-side replaces it.

My initial investigation picked up DW's launching of client-side scripts, the real answer is deeper as described here.
Avatar
hokkaidoperson #4
Member since Apr 2018 · 57 posts · Location: Sapporo, Hokkaido, Japan
Group memberships: Members
Show profile · Link to this post
I'm the distributor of this plugin.

My co-worker is now recreating the script, and I heard that his work had been going smoothly so far.  Please wait until he finishes the work.
I wish I could help him… (I'm not used to Javascript)
Avatar
hokkaidoperson #5
Member since Apr 2018 · 57 posts · Location: Sapporo, Hokkaido, Japan
Group memberships: Members
Show profile · Link to this post
… and should I change the name of this plugin?
Avatar
Michaelsy #6
Member since Jun 2015 · 887 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
Quote by hokkaidoperson:
… and should I change the name of this plugin?

I think that would be better. Maybe "header4", "headerstyle", "headerstyling", "styledheadings", "styledheaders". (I prefer "headerstyling")
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
hokkaidoperson #7
Member since Apr 2018 · 57 posts · Location: Sapporo, Hokkaido, Japan
Group memberships: Members
Show profile · Link to this post
I think that would be better. Maybe "header4", "headerstyle", "headerstyling", "styledheadings", "styledheaders". (I prefer "headerstyling")
Thanks for your suggestion.  I'll think about the new name.
Avatar
hokkaidoperson #8
Member since Apr 2018 · 57 posts · Location: Sapporo, Hokkaido, Japan
Group memberships: Members
Show profile · Link to this post
I've updated the plugin, and renamed its ID from wikistyle2html to wikiformatstyling. See https://www.dokuwiki.org/plugin:wikiformatstyling

I didn't use "headerstyling" etc. because the scope of this plugin has been extended to out of headers (styling became available in link texts).
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-05-25, 19:33:51 (UTC +02:00)