For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > January 2006 > Re: [SMARTY] Hi Probleme with smarty include









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] Hi Probleme with smarty include
messju mohr

2006-01-14, 6:59 pm

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
> *

dforums

2006-01-14, 6:59 pm

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:
>
>
>
>turn off magic_quotes_runtime in php.ini or via ini_set().
>
>
>
>
>
>
>

messju mohr

2006-01-14, 6:59 pm

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.
[color=darkred]
> regards
>
> david bigand
>
>
> messju mohr a écrit :
>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com