developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#945 closed bug (fixed)

Bug avec {image} quand le nom de l'image contient un espace

Reported by: geekbay Owned by:
Priority: normal Milestone: Jelix 1.1.4
Component: jelix:utils Version: 1.1.3
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

Voici le bug que j'avais, si je fais

{image 'lol lol.jpg',array('width'=>100)}

je recois comme erreur

imagecreatefromjpeg Failed to open stream: HTTP request failed! HTTP/1.1 404 

j'ai donc essayé de faire

{image 'lol%20lol.jpg',array('width'=>100)}

plus d'erreur 404, mais pas de creation du fichier cache et donc le code genere est:

<img src="lol%20lol.jpg" style="width:100px">

donc voici un patch qui corrige ca en n'utilisant pas le path http mais le path filesystem pour le imagecreatefromjpeg

Attachments (1)

patch_jimagemodifier.patch (1.7 KB) - added by geekbay 11 years ago.
Patch pour jImageModifier

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by geekbay

Patch pour jImageModifier

comment:1 Changed 11 years ago by laurentj

  • Component changed from jelix to jelix:utils
  • Milestone set to Jelix 1.1.4
  • review set to review?

je regarderai ça plus tard

comment:2 Changed 11 years ago by laurentj

  • Resolution set to fixed
  • review changed from review? to review+
  • Status changed from new to closed

ok for me. r1455

comment:3 Changed 11 years ago by laurentj

Thanks for your patch.

Note: See TracTickets for help on using tickets.