mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 17:08:54 +00:00
added security warnings about show_source and highlight_file
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@42980 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f7716f7041
commit
2ca445496c
1 changed files with 26 additions and 7 deletions
|
@ -434,7 +434,17 @@ Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)<hr>
|
|||
using the colors defined in the built-in syntax highlighter for PHP.
|
||||
It returns true on success, false otherwise (PHP 4).
|
||||
</simpara>
|
||||
<para>
|
||||
<note>
|
||||
<simpara>
|
||||
Care should be taken when using the
|
||||
<function>show_source</function> and
|
||||
<function>highlight_file</function> functions to make sure that
|
||||
you do not inadvertently reveal sensitive information such as
|
||||
passwords or any other type of information that might create a
|
||||
potential security risk.
|
||||
</simpara>
|
||||
</note>
|
||||
<para>
|
||||
<example>
|
||||
<title>Creating a source highlighting URL</title>
|
||||
<simpara>
|
||||
|
@ -448,11 +458,12 @@ Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)<hr>
|
|||
In your httpd.conf you can add the following:
|
||||
</simpara>
|
||||
<para>
|
||||
<informalexample><programlisting>
|
||||
<informalexample>
|
||||
<programlisting>
|
||||
<Location /source>
|
||||
ForceType application/x-httpd-php
|
||||
</Location>
|
||||
</programlisting></informalexample>
|
||||
</programlisting></informalexample>
|
||||
</para>
|
||||
<simpara>
|
||||
And then make a file named "source" and put it in your
|
||||
|
@ -490,9 +501,9 @@ Mozilla/4.5 [en] (X11; U; Linux 2.2.9 i586)<hr>
|
|||
</simpara>
|
||||
<para>
|
||||
<informalexample>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
http://your.server.com/source/path/to/script.php
|
||||
</programlisting>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
</example>
|
||||
|
@ -793,10 +804,18 @@ $binarydata = pack ("nvc*", 0x1234, 0x5678, 65, 66);
|
|||
using the colors defined in the built-in syntax highlighter for PHP.
|
||||
It returns true on success, false otherwise (PHP 4).
|
||||
</simpara>
|
||||
<simpara>
|
||||
This function is an alias for the function
|
||||
<function>highlight_file</function>
|
||||
</simpara>
|
||||
<note>
|
||||
<simpara>
|
||||
This function is an alias for the function
|
||||
<function>highlight_file</function>
|
||||
Care should be taken when using the
|
||||
<function>show_source</function> and
|
||||
<function>highlight_file</function> functions to make sure that
|
||||
you do not inadvertently reveal sensitive information such as
|
||||
passwords or any other type of information that might create a
|
||||
potential security risk.
|
||||
</simpara>
|
||||
</note>
|
||||
<simpara>
|
||||
|
|
Loading…
Reference in a new issue