Skip to content

Commit

Permalink
Sync taint with EN
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Jan 27, 2024
1 parent 8118414 commit 1b8ec24
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 36 deletions.
6 changes: 3 additions & 3 deletions reference/taint/book.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 0d01b79df7de0bce3c9087517e1d6a7a7f219788 Maintainer: seros Status: ready -->
<!-- EN-Revision: 28529d3539b850e870e3aa97570f4db0e53daa03 Maintainer: seros Status: ready -->
<!-- Reviewed: no -->

<book xml:id="book.taint" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<?phpdoc extension-membership="pecl" ?>
<title>Taint</title>
<titleabbrev>Taint</titleabbrev>

Expand Down Expand Up @@ -36,7 +36,7 @@ echo $salida;
print $$var;
include($nombre_fichero);
include $nombre_fichero;
mysql_query($sql);
?>
Expand Down
52 changes: 41 additions & 11 deletions reference/taint/detail.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 94497636f2f6956ba6bf1017297d589009fbd040 Maintainer: seros Status: ready -->
<!-- EN-Revision: 4de6d12569dcee7ac2012400c439eee8a971b813 Maintainer: seros Status: ready -->
<!-- Reviewed: no -->

<chapter xml:id="taint.detail" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Más detalles</title>

<section xml:id="taint.detail.basic">
<title>Funciones y sentencias que propagarán la marca de corrupción de una
cadena corrupta</title>
Expand Down Expand Up @@ -43,11 +42,11 @@
<entry>0.3.0</entry>
</row>
<row>
<entry>explode</entry>
<entry>explode/split</entry>
<entry>0.3.0</entry>
</row>
<row>
<entry>implode</entry>
<entry>implode/join</entry>
<entry>0.3.0</entry>
</row>
<row>
Expand All @@ -70,12 +69,36 @@
<entry>ltrim</entry>
<entry>0.4.0</entry>
</row>
<row>
<entry>strstr</entry>
<entry>0.5.0</entry>
</row>
<row>
<entry>str_pad</entry>
<entry>0.5.0</entry>
</row>
<row>
<entry>str_replace</entry>
<entry>0.5.0</entry>
</row>
<row>
<entry>substr</entry>
<entry>0.5.0</entry>
</row>
<row>
<entry>strtolower</entry>
<entry>0.5.0</entry>
</row>
<row>
<entry>strtoupper</entry>
<entry>0.5.0</entry>
</row>
</tbody>
</tgroup>
</table>
</para>
</section>

<section xml:id="taint.detail.taint">
<title>Funciones y sentencias que comprobarán cadenas corrompidas</title>
<para>
Expand Down Expand Up @@ -107,7 +130,7 @@
<entry>0.1.0</entry>
</row>
<!--end basic -->

<row>
<entry namest="name" nameend="version">Funciones de salida</entry>
</row>
Expand Down Expand Up @@ -187,6 +210,14 @@
<entry>PDO::prepare</entry>
<entry>0.3.0</entry>
</row>
<row>
<entry>SQLite3::query</entry>
<entry>2.0.1</entry>
</row>
<row>
<entry>SQLite3::prepare</entry>
<entry>2.0.1</entry>
</row>
<!-- end database -->
<row>
<entry namest="name" nameend="version">Funciones relacionadas con la línea de comandos</entry>
Expand All @@ -212,13 +243,13 @@
<entry>0.3.0</entry>
</row>
<!-- end command line -->

</tbody>
</tgroup>
</table>
</para>
</section>

<section xml:id="taint.detail.untaint">
<title>Funciones que sanean cadenas corruptas</title>
<para>
Expand Down Expand Up @@ -282,10 +313,9 @@
</tgroup>
</table>
</para>

</section>
</chapter>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Expand Down
19 changes: 9 additions & 10 deletions reference/taint/functions/taint.xml
Original file line number Diff line number Diff line change
@@ -1,56 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: bdfa2647b2061be736fcdb66e8a5df3b987616b4 Maintainer: seros Status: ready -->
<!-- EN-Revision: 9e0f03ac354d797d1d16c0fcc1663e5e170f2727 Maintainer: seros Status: ready -->
<!-- Reviewed: yes Maintainer: seros -->

<refentry xml:id="function.taint" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>taint</refname>
<refpurpose>Corrompe un string</refpurpose>
</refnamediv>

<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>taint</methodname>
<methodparam><type>string</type><parameter role="reference">string</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam>
<methodparam rep="repeat"><type>string</type><parameter>strings</parameter></methodparam>
</methodsynopsis>
<para>
Crea un string corrompido. Solamente se usa para realizar pruebas.
</para>
</refsect1>

<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>string</parameter></term>
<listitem>
<para>

</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter></term>
<term><parameter>strings</parameter></term>
<listitem>
<para>
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Devuelve TRUE si la transformación se lleva a cabo. Siempre devuelve TRUE si la extensión
taint no esta activada.
</para>
</refsect1>


</refentry>

<!-- Keep this comment at the end of the file
Expand Down
11 changes: 5 additions & 6 deletions reference/taint/functions/untaint.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: a6ebdf8de6eb9f0663ef702cec389efad90f743e Maintainer: seros Status: ready -->
<!-- EN-Revision: 9e0f03ac354d797d1d16c0fcc1663e5e170f2727 Maintainer: seros Status: ready -->
<!-- Reviewed: no Maintainer: seros -->

<refentry xml:id="function.untaint" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand All @@ -14,7 +13,7 @@
<methodsynopsis>
<type>bool</type><methodname>untaint</methodname>
<methodparam><type>string</type><parameter role="reference">string</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>...</parameter></methodparam>
<methodparam rep="repeat"><type>string</type><parameter>strings</parameter></methodparam>
</methodsynopsis>
<para>
Sanea un string
Expand All @@ -28,15 +27,15 @@
<term><parameter>string</parameter></term>
<listitem>
<para>

</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>...</parameter></term>
<term><parameter>strings</parameter></term>
<listitem>
<para>

</para>
</listitem>
</varlistentry>
Expand Down
11 changes: 5 additions & 6 deletions reference/taint/ini.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 899937e0557c1fb7facd3a3235eb09fa45669152 Maintainer: seros Status: ready -->
<!-- EN-Revision: d4d5216e7a965ca194f6b1c9dee84cecab2674e5 Maintainer: seros Status: ready -->
<!-- Reviewed: no -->

<section xml:id="taint.configuration" xmlns="http://docbook.org/ns/docbook">
Expand All @@ -22,13 +21,13 @@
<row>
<entry><link linkend="ini.taint.enable">taint.enable</link></entry>
<entry>0</entry>
<entry>its PHP_INI_SYS value</entry>
<entry><constant>INI_SYSTEM</constant></entry>
<entry><!-- leave empty, this will be filled by an automatic script --></entry>
</row>
<row>
<entry><link linkend="ini.taint.error-level">taint.error_level</link></entry>
<entry>E_WARNING</entry>
<entry>its <constant>INI_ALL</constant> value</entry>
<entry><constant>INI_ALL</constant></entry>
<entry><!-- leave empty, this will be filled by an automatic script --></entry>
</row>
</tbody>
Expand All @@ -43,7 +42,7 @@
<varlistentry xml:id="ini.taint.enable">
<term>
<parameter>taint.enable</parameter>
<type>integer</type>
<type>int</type>
</term>
<listitem>
<para>
Expand All @@ -54,7 +53,7 @@
<varlistentry xml:id="ini.taint.error-level">
<term>
<parameter>taint.error_level</parameter>
<type>integer</type>
<type>int</type>
</term>
<listitem>
<para>
Expand Down

0 comments on commit 1b8ec24

Please sign in to comment.