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 12 years ago

Closed 12 years ago

#666 closed bug (fixed)

parenthèse dans for (tpl)

Reported by: hadrien Owned by: laurentj
Priority: normal Milestone: Jelix 1.0.6
Component: jelix:tpl Version: 1.0.5
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description (last modified by laurentj)

Il n'est plus possible de mettre de parenthèse dans une boucle for dans un template :

{for $i = date('Y'); $i > 1902; $i = $i-1}

Fatal EXCEPTION [309] Dans le tag for $i = date('Y'); $i > 1902; $i = $i-1 du template xxx.tpl, le caractère  ( n'est pas autorisé, on line 487 in file /usr/local/share/jelix/lib/jelix/tpl/jTplCompiler.class.php

Change History (5)

comment:1 Changed 12 years ago by hadrien

Burn in Hell !!

comment:2 Changed 12 years ago by laurentj

  • Component changed from jelix to jelix:tpl

comment:3 Changed 12 years ago by laurentj

parenthesis should be allowed only in trusted template. We couldn't allowed to call any php function in a template.

comment:4 Changed 12 years ago by laurentj

  • Description modified (diff)
  • Owner set to laurentj
  • Priority changed from high to normal
  • Severity changed from major to minor
  • Status changed from new to assigned

comment:5 Changed 12 years ago by laurentj

  • Resolution set to fixed
  • Status changed from assigned to closed

Les parenthèses sont maintenant autorisés dans un for, mais seulement dans les templates de confiance. svn 1112

Note: See TracTickets for help on using tickets.