åå ãããããŸããã
FAQã®ã³ã³ãã³ãéšåã衚瀺ããIframeã§äœ¿çšãããŠããSandboxã«ããã»ãã¥ãªãã£å¶éããããããŠããŸããã
sandboxã«ãã以äžã®å¶éãåããããã§ãã
ã»FAQå士ã®ãªã³ã¯ãã§ããªã
ã»éããã¡ã€ã³ãžã®ãªã³ã¯ãã§ããªã
ã»ãªã³ã¯å
ã®JavaScriptãç¡å¹ã«ããŠããŸã
ãœãŒã¹ã倿Žããããšã§æ¹åããŸãã
èµ€åéšåãåé€ããããšã§æ£åžžã«åäœããŸããã
Kernel/Output/HTML/Standard/CustomerFAQZoom.tt
ç·šéç®æ
<div class="MessageBody">
# Use the HTML5 sandbox attribute to prevent plugins and scripts from being executed in the browser.
# Use IE's (non-standard) security attribute to achieve something similar in older IE browsers. Append session info to URL because IE will not send cookies.
          <iframe sandbox="allow-same-origin allow-popups" [% Data.MSSecurityRestricted %] class="FAQField" id="IframeFAQ[% Data.Field | html %]" onload="if (typeof FAQ === 'object' && typeof FAQ.Customer === 'object' && typeof FAQ.Customer.FAQZoom === 'object') { FAQ.Customer.FAQZoom.IframeAutoHeight($('#IframeFAQ[% Data.Field | html %]')); };" src="#" data-src="[% Env("Baselink") %]Action=CustomerFAQZoom;Subaction=HTMLView;ItemID=[% Data.ItemID | html %];Field=[% Data.Field | html %];[% Env("SessionName") | html %]=[% Env("SessionID") | html %]"></iframe>
        </div>
以äžãåèã«ãªãã°å¹žãã§ãã
2015幎6æ24æ¥æ°Žææ¥ 23æ58å09ç§ UTC+9 Takeshi Kameyama: