PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.smarty.general > Hi Probleme with smarty include
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Hi Probleme with smarty include

Réponse
 
LinkBack Outils de la discussion
Vieux 14/01/2006, 13h35   #1
dforums
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Hi Probleme with smarty include

I got the following message with smarty.

*Fatal error*: Smarty error: [in home.html line 1]: syntax error:
invalid attribute name: 'entete.html\' (Smarty_Compiler.class.php, line
1531) in */home/julie-envy/dev/class/libs/Smarty.class.php* on line *1095

Could you tell me, why ?
And what to do ?

I use php 5.0.4

Regards

David
*
  Réponse avec citation
Vieux 14/01/2006, 13h41   #2
Boris
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Hi Probleme with smarty include

hello
maybe you have javascript code in your file entete.html
try to insert {literal} {/literal} tags to desactivate the smarty parser

++
Boris


dforums a écrit :

> I got the following message with smarty.
>
> *Fatal error*: Smarty error: [in home.html line 1]: syntax error:
> invalid attribute name: 'entete.html\' (Smarty_Compiler.class.php,
> line 1531) in */home/julie-envy/dev/class/libs/Smarty.class.php* on
> line *1095
>
> Could you tell me, why ?
> And what to do ?
>
> I use php 5.0.4
>
> Regards
>
> David
> *
>

  Réponse avec citation
Vieux 14/01/2006, 15h28   #3
messju mohr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Hi Probleme with smarty include

On Sat, Jan 14, 2006 at 02:35:42PM +0100, dforums wrote:
> I got the following message with smarty.
>
> *Fatal error*: Smarty error: [in home.html line 1]: syntax error:
> invalid attribute name: 'entete.html\' (Smarty_Compiler.class.php, line
> 1531) in */home/julie-envy/dev/class/libs/Smarty.class.php* on line *1095


turn off magic_quotes_runtime in php.ini or via ini_set().

> Could you tell me, why ?
> And what to do ?
>
> I use php 5.0.4
>
> Regards
>
> David
> *

  Réponse avec citation
Vieux 14/01/2006, 15h43   #4
dforums
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Hi Probleme with smarty include

I understood that it was linked but for security issue it is out of
question that I set it to off.

Please give me a secure answer.

I suppose the code must be change a little.

regards

david bigand


messju mohr a écrit :

>On Sat, Jan 14, 2006 at 02:35:42PM +0100, dforums wrote:
>
>
>>I got the following message with smarty.
>>
>>*Fatal error*: Smarty error: [in home.html line 1]: syntax error:
>>invalid attribute name: 'entete.html\' (Smarty_Compiler.class.php, line
>>1531) in */home/julie-envy/dev/class/libs/Smarty.class.php* on line *1095
>>
>>

>
>turn off magic_quotes_runtime in php.ini or via ini_set().
>
>
>
>>Could you tell me, why ?
>>And what to do ?
>>
>>I use php 5.0.4
>>
>>Regards
>>
>>David
>>*
>>
>>

>
>
>
>

  Réponse avec citation
Vieux 14/01/2006, 15h51   #5
messju mohr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Hi Probleme with smarty include

On Sat, Jan 14, 2006 at 04:43:32PM +0100, dforums wrote:
> I understood that it was linked but for security issue it is out of
> question that I set it to off.
>
> Please give me a secure answer.


smarty doesn't work with magic_quotes_runtime enabled. period.
maybe you are confusing magic_quotes_gpc and magic_quotes_runtime.

> I suppose the code must be change a little.


you want to "raise security" by enabling something confusing like
magic_quotes_runtime that emits backslashes at weird places here and
there? and to work against it's behaviour you want to tamper a bit
with 3rd party code (the smarty compiler in this case)? please don't.

> regards
>
> david bigand
>
>
> messju mohr a écrit :
>
> >On Sat, Jan 14, 2006 at 02:35:42PM +0100, dforums wrote:
> >
> >
> >>I got the following message with smarty.
> >>
> >>*Fatal error*: Smarty error: [in home.html line 1]: syntax error:
> >>invalid attribute name: 'entete.html\' (Smarty_Compiler.class.php, line
> >>1531) in */home/julie-envy/dev/class/libs/Smarty.class.php* on line *1095
> >>
> >>

> >
> >turn off magic_quotes_runtime in php.ini or via ini_set().
> >
> >
> >
> >>Could you tell me, why ?
> >>And what to do ?
> >>
> >>I use php 5.0.4
> >>
> >>Regards
> >>
> >>David
> >>*
> >>
> >>

> >
> >
> >
> >

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 16h15.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10199 seconds with 13 queries