.
Coding in a nutshell - Grin with cat attached
Previous Entry Next Entry
Coding in a nutshell Jun. 24th, 2008 05:23 pm
$security can be TRUE or FALSE, defaults to FALSE.

http://www.smarty.net/manual/en/variable.security.php

From: flewellyn
Date: June 24th, 2008 - 05:39 pm (Link)
OY! For a second, I thought it meant "defaults to assuming an insecure environment", but no, it defaults to NO SECURITY.

Geez.
From: topbit
Date: June 24th, 2008 - 10:02 pm (Link)
How does this differ from the juggling chainsaws that is a superuser for example on a Unix-like OS (even just regular user where you can trash your own files, if not everyone else's)?

Get out of my way, because I know what I'm doing - which would be the case in all the sites I've built for example. What it does do is give you a choice so if you intend to allow people to build on top of a template you've written, you can limit what they do.
From: flewellyn
Date: June 24th, 2008 - 10:06 pm (Link)
Because "default permit" is stupid.