documents containing shell code

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Guest

documents containing shell code

Post by Guest »

Hi all,

Wow, nice CMS!

Some problems remain, though. When I try to insert a document containing shell code like

Code: Select all

awk '$2 ~ /^f$/ {print $NF}'
I get the followinfg error in error_log:

Code: Select all

PHP Fatal error:  Smarty error: [in preview:cmspreviewwZxa7c line 282]: syntax error: invalid attribute name: '$NF' (Smarty_Compiler.class.php, line 1510) in /data/htdocs/cmsmadesimple-0.8.1/lib/smarty/Smarty.class.php on line 1088, referer: http://webserver/cms/admin/editcontent.php
I presume it has something to do with the curly brackets, but I'm not sure how to solve this.

Any suggestions?

Thanks

Peter
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

documents containing shell code

Post by Ted »

Try:

Code: Select all

{literal}awk '$2 ~ /^f$/ {print $NF}'{/literal}
Peter

Re: documents containing shell code

Post by Peter »

{literal}{/literal} does the trick.

Thanks a lot.

Peter
Locked

Return to “CMSMS Core”