[dokuwiki] Re: Precondition Failed

  • From: Lorenzo Breda <lorenzo@xxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 21 May 2013 18:15:29 +0200

2013/5/21 Christopher Smith <chris@xxxxxxxxxxxxx>

> In order to mitigate a security vulnerability, we've introduced a token
> for fetch requests which require image resizing or cropping[1].  DokuWiki
> should generate image links using the "ml()" function which should include
> the correct token.  Some templates or plugins might not do this.  Where
> possible (which should be in most cases), the references to lib/exe/fetch
> (or _media) should be replaced with calls to "ml()".

Today morning the internal requests worked. A caching problem, maybe.
Cleaning the cache with the cache plugin had no effect, yesterday.

> When generating links outside DW:
> - if the images are dynamic, you could add tokens by including DW from
> your php page and caching the resulting link (to minimize the necessity to
> include DW).
> - if the images are stable, quickest is probably to generate the links in
> a normal dokuwiki page and copy them to the external php page.

I used ml() in my php page and cached the link, and it works. Thank you
very much!

Lorenzo Breda

Other related posts: