Ticket #68 (new bug)
Scribite integration problem with having Zikula in a sub directory
| Reported by: | markus6969 | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.0 RC2 |
| Component: | All general things | Version: | 1.0 |
| Keywords: | Cc: |
Description
Hi,
there is a scribite integration problem if you have Zikula
in a subdirectory installed.
Example:
========
Zikula installation folder:
http://www.zikula.domain.com/zk/
MediaAttach? cache folder:
http://www.zikula.domain.com/temp/mediaattach/
Procedure to generate the bug:
1) open xinha editor to make e.g. a new news entry
2) insert a picture with the "insert a MediaAttach? file" button (paper-clip)
3) insert a picture in inline mode
4) now you can see the picture in the scribite window area
5) click on <> to see the html code
6) click again on <> to come back in the WISIWIG mode
7) the picture is not displayed now only the "alternate" text
HTML-Code example after step 4:
<a href="http://www.zikula.domain.com/zk/index.php?module=MediaAttach&func=download&fileid=13&inline=1" title="Myself ;-)"> <img src="http://www.zikula.domain.com/zk/../temp/mediaattach/6179971ffb5f5ce96c159d571b16b30f.png" alt="Myself"></a>
HTML-Code example after step 5:
The switch to HTML view mkes changes to the HTML-Code!
<a href="/zk/index.php?module=MediaAttach&func=download&fileid=13&inline=1" title="Myself ;-)"> <img src="/http://www.zikula.domain.com/zk/../temp/mediaattach/6179971ffb5f5ce96c159d571b16b30f.png" alt="Myself" /></a>
HTML-Code example after step 6:
The HTML-Code is AGAIN changed!
<a href="/zk/index.php?module=MediaAttach&func=download&fileid=13&inline=1" title="Myself ;-)"> <img src="/http://www.zikula.domain.com/http://www.zikula.domain.com/zk/../temp/mediaattach/6179971ffb5f5ce96c159d571b16b30f.png" alt="Myself"></a>
Workarround:
If you change the HTML-code by hand to:
<a href="/zk/index.php?module=MediaAttach&func=download&fileid=13&inline=1" title="MySelf ;-)"> <img src="/temp/mediaattach/6179971ffb5f5ce96c159d571b16b30f.png" alt="Myself" /></a>
it will work!
-> It seems there is a problem with the "/../" folder.
BR,
Markus
