Not logged in. · Lost password · Register
Forum: General Help and Support General Stuff RSS
User manual for older releases?
Avatar
Aurimas #1
Member since Apr 2012 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: User manual for older releases?
Hello,

I have a DokuWiki version "Release 2007-06-26b". I've found in Dokuwiki docs online that if you want a link to an image rather than embedding the image, you have to add "?linkonly" to the link. This doesn't seem to work in the version I have. I've checked changelog to see, when this "?linkonly" appeared, but didn't find a sign. I really want the image as link and I wouldn't like to upgrade Dokuwiki, so either:
  • I have to find in the docs of my release how to do this some other way or
  • I have to convert the image to PDF - last resort.

So, I'd like to ask you, guys: where could I find the docs for my release (specifically, I need "Image and Media Handling" - for latest release it is http://www.dokuwiki.org/images)?

Regards,
Aurimas
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 2328 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
You could add the following .htaccess file to your data/media directory.
order allow,deny
deny from all

<FilesMatch "\.(gif|jpe?g|png)$">
order allow,deny
allow from all
</FilesMatch>

This will enable external links to images:
   http://your_site.org/data/media/image.gif
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Aurimas #3
Member since Apr 2012 · 6 posts
Group memberships: Members
Show profile · Link to this post
Thanks, Myron - your proposed solution worked for me. Now with that solved - it would be nice to have the docs as well, but not a must.
Avatar
andi (Administrator) #4
Member since May 2006 · 2447 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
No. Please, Myron stop suggesting such things without an explicit warning about the security issues that arise.

Aurimas, doing what Myron suggested will completely circumvent all ACLs for your image files. It might be okay if your wiki is public anyway, if it is not then I would strongly advice against this. Also, we fixed several security problems since 2007. Be sure you fixed those issues manually or your server and your users are at risk.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
turnermm (Moderator) #5
Member since Oct 2009 · 2328 posts
Group memberships: Global Moderators, Members
Show profile · Link to this post
This solution implies that public access to images is, for this site, harmless.  And generally that's true.  But I should have indicated the warning, as you suggest.
Myron Turner
fckgLite (&ckgedit): http://www.mturner.org/fckgLite/
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Aurimas #6
Member since Apr 2012 · 6 posts
Group memberships: Members
Show profile · Link to this post
Thanks andi for the security warning. My wiki is public right now, but I'll keep this in mind, if things change in the future.
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, 20120620-dev, © 2003-2011 by Yves Goergen
Current time: 2014-04-24, 00:11:29 (UTC +02:00)