Re: FW: Error using html::template

Mathew Robertson <[email protected]> Wed, 10 Jun 2009 08:56:19 +1000
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization Nielsen//NetRatings
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============4123775849097826873==
Content-Type: multipart/alternative;
	boundary="------------000106050806080701020801"

This is a multi-part message in MIME format.
--------------000106050806080701020801
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


>> Other than that, I'd suggest you ask your sys-admin to fix their
>> security policy....
>>     
>
> What about using wget or curl to read the file, and then use the
> feature of H::T's "new" method to load a template from a variable?
> (scalarref => $ref_to_template_text).
>
> I agree that disallowing opening files on a system seems obsessive.
>   
An "strace wget file:///home/..." shows that wget uses the open() system 
call.  I'd suspect that wget would also fail for the same reason.

For wget to succeed (in this conext), I suspect that it would need make 
a request to a http-daemon, which itself serves the file.

cheers,
Mathew Robertson

--------------000106050806080701020801
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote
 cite="mid:[email protected]"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">Other than that, I'd suggest you ask your sys-admin to fix their
security policy....
    </pre>
  </blockquote>
  <pre wrap=""><!---->
What about using wget or curl to read the file, and then use the
feature of H::T's "new" method to load a template from a variable?
(scalarref =&gt; $ref_to_template_text).

I agree that disallowing opening files on a system seems obsessive.
  </pre>
</blockquote>
An "strace wget <a class="moz-txt-link-freetext" href="file:///home/">file:///home/</a>..." shows that wget uses the open()
system call.&nbsp; I'd suspect that wget would also fail for the same reason.<br>
<br>
For wget to succeed (in this conext), I suspect that it would need make
a request to a http-daemon, which itself serves the file.<br>
<br>
cheers,<br>
Mathew Robertson<br>
</body>
</html>

--------------000106050806080701020801--


--===============4123775849097826873==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
--===============4123775849097826873==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Html-template-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/html-template-users

--===============4123775849097826873==--