Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Bug tracker «  

external link in xhtml? [Solved]

A solution has been made available

Solution Manager: Bernard

Issue description

I have two navigation box with external and internal link to some image, both does'nt works. If i clik on the image wich is referencing a link i get the message:
/yacs/articles/<i>www.venganza.org


That's the html code:
[a href='http://www.debian.org/']
[img src='http://www.darviniano.eu/images/button-mini.png' alt='debian' /]
[/a]
[a href='http://www.kde.org/'>
[img src='http://www.kde.org/stuff/buttons/kde-desktop.png' alt='kde-desktop' /]
[/a]


The double slash after http are present in the original code. Yacs eliminate them when i post.

You can see the original "problem" in www.darviniano.eu

Comments

Bernard
avatar
from nearby-an-airport
Associate
6569 posts
registered on Sep. 12 2003

on Dec. 10 2006


Analysis: Problem is linked to a bug introduced in version 6.10. This version supports some Wiki codes, including 'slash-slash', the one that produces italic. Unfortunately, pattern matching rule introduced to process this code also matches web links, which kills the links.

Root cause and solution: Pattern matching '/\/\/(.*?)\/\//is', to be changed to '/([\s\(])\/\/(.*?)\/\/(\W)/is', in line 570 of codes/codes.php

Rate this page
Posted by Fw_crocodile on Dec. 10 2006, page edited by Bernard on Dec. 10 2006, (popular)