message_security

NAML documentation   Watch a video
   Usages of this macro
... in message_security.naml
1
2
3
4
5
6
7
8
9
10
11
<override_macro name="message_security" requires="html_list">    
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_command
Binary
Namespace: BasicNamespace
Parameters: name
 name="harvey_post_block">
        <then>
            <n.set_local_user
Macro
Parameters: user
.global_var
Binary
Namespace: BasicNamespace
Parameters: name
 name="harvey_post_author" />
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.local_user
Macro
Parameters: do
.is_in_group
Binary
Namespace: UserNamespace
Parameters: group
 group="Links">
                <then.disable_banned_tags
Binary
Namespace: HtmlListNamespace
Parameters: banned_tags, remove
 banned_tags="a" remove="true" />
            </n.if.not.local_user.is_in_group>
        </then>
    </n.if.is_in_command>
    <n.overridden/>
</override_macro>
Overrides default macro
... in message.naml
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<macro name="message_security" requires="html_list">
    <n.disable_banned_tags
Binary
Namespace: HtmlListNamespace
Parameters: banned_tags, remove
.>
        script,
        style,
        html,
        head,
        body,
        link
    </n.disable_banned_tags.>
    <n.disable_invalid_urls
Binary
Namespace: HtmlListNamespace
Parameters: url_attributes
.>
        href,
        src,
        action
    </n.disable_invalid_urls.>
    <n.disable_javascript_urls
Binary
Namespace: HtmlListNamespace
Parameters: url_attributes
.>
        href,
        src,
        action
    </n.disable_javascript_urls.>
    <n.disable_on_event
Binary
Namespace: HtmlListNamespace
/>
    <n.disable_scripts
Binary
Namespace: HtmlListNamespace
/>
    <n.disable_style_blocks
Binary
Namespace: HtmlListNamespace
Parameters: remove
/>
</macro>