Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [Alex] File include in Global Vars?

Quote Reply
Re: [Alex] File include in Global Vars? In reply to
Alex,

The template parser would not need to know very much about the globals.
The sub { ...perl code... } information could be used to find the perl code parts in globals and
ignore parsing of anything between sub { and }, therefore I don't aggree with you,
that there is security leak using the way I suggested here.


Quote:
This would add a significant overhead as every global would need a separate call through GT::Template->parse. I can see the use for it in some cases, but I think the performance hit is too great.
Yes, I aggree with you about the performance hit. It is only worth to implement parsing of globals, if the performance will be not affected very much.
But I think, ignoring the sub { ...perl code... } in globals would not affect performance very much, just a bit. And remember globals means mostly small strings, especially if we ignore the perl code parts...

In addition, if you add the Global parsing feature option which make possible to turn off parsing of globals, then users could decide themself, if they need to use this feature or not.
Because the performance thing we discussed, I suggest the Global parsing feature option
to be turned OFF by default.

Let me know your opinion.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread File include in Global Vars? webmaster33 2581 Apr 28, 2002, 4:40 PM
Thread Re: [webmaster33] File include in Global Vars?
Jagerman 2515 Apr 28, 2002, 6:24 PM
Thread Re: [Jagerman] File include in Global Vars?
webmaster33 2471 Apr 29, 2002, 5:13 AM
Thread Re: [webmaster33] File include in Global Vars?
Paul 2469 Apr 29, 2002, 5:43 AM
Thread Re: [Paul] File include in Global Vars?
webmaster33 2467 Apr 29, 2002, 6:15 AM
Thread Re: [webmaster33] File include in Global Vars?
Paul 2443 Apr 29, 2002, 6:56 AM
Thread Re: [Paul] File include in Global Vars?
webmaster33 2427 Apr 29, 2002, 8:25 AM
Post Post deleted by Paul
Paul 2483 Apr 29, 2002, 9:12 AM
Post Re: [Paul] File include in Global Vars?
webmaster33 2438 Apr 29, 2002, 10:01 AM
Thread Re: [webmaster33] File include in Global Vars?
Alex 2410 Apr 29, 2002, 12:01 PM
Thread Re: [Alex] File include in Global Vars?
webmaster33 2396 Apr 29, 2002, 1:49 PM
Thread Re: [webmaster33] File include in Global Vars?
Paul 2405 Apr 29, 2002, 1:54 PM
Thread Re: [Paul] File include in Global Vars?
webmaster33 2454 Apr 29, 2002, 2:10 PM
Thread Re: [webmaster33] File include in Global Vars?
Alex 2398 Apr 29, 2002, 3:23 PM
Post Re: [Alex] File include in Global Vars?
webmaster33 2391 Apr 29, 2002, 4:04 PM