Apple Mac OS X Server (Extending Your Wiki Server For Ve Instrukcja Użytkownika Strona 32

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 45
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 31
About the Custom Whitelist’s Structure
The following lines are required in the custom whitelist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.
com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>protocols</key>
<array>
allowed protocols
</array>
<key>styles</key>
<array>
allowed CSS styles
</array>
<key>tags</key>
<dict>
allowed HTML tags and attributes
</dict>
</dict>
</plist>
The dict contains several key/value blocks that allow specic protocols, styles, tags, or
attributes.
Allowing Specic URL Protocols
To allow specic URL protocols, add strings with the protocols’ names to the protocols
block.
For example, to allow entry of URLs that start with “irc://” and “scp://”, create the
following block:
<key>protocols</key>
<array>
<string>irc</string>
<string>scp</string>
</array>
Allowing Specic CSS Styles
To allow specic CSS style attributes, add strings with the style attributes’ names to the
styles block.
32 Chapter 2 Allowing Specic Protocols, CSS Styles, and HTML Tags and Attributes
Przeglądanie stron 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 44 45

Komentarze do niniejszej Instrukcji

Brak uwag