aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2018-09-13 18:47:14 +0200
committerJakub Senko <jakubsenko@gmail.com>2018-09-13 18:47:14 +0200
commit89d1401a77f7a2f9ee067b90efa975e21363e914 (patch)
tree76cb67febb5a5f1db6adaa29edcc332e96b43ba4 /phpBB/phpbb
parent8eb48e281287646bb186f831e4f076f4557a14a9 (diff)
downloadforums-89d1401a77f7a2f9ee067b90efa975e21363e914.tar
forums-89d1401a77f7a2f9ee067b90efa975e21363e914.tar.gz
forums-89d1401a77f7a2f9ee067b90efa975e21363e914.tar.bz2
forums-89d1401a77f7a2f9ee067b90efa975e21363e914.tar.xz
forums-89d1401a77f7a2f9ee067b90efa975e21363e914.zip
[ticket/15742] Remove addslashes_recursively()
PHPBB3-15742
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/request/type_cast_helper.php28
-rw-r--r--phpBB/phpbb/request/type_cast_helper_interface.php7
2 files changed, 0 insertions, 35 deletions
diff --git a/phpBB/phpbb/request/type_cast_helper.php b/phpBB/phpbb/request/type_cast_helper.php
index 1a53206c74..912494998d 100644
--- a/phpBB/phpbb/request/type_cast_helper.php
+++ b/phpBB/phpbb/request/type_cast_helper.php
@@ -19,34 +19,6 @@ namespace phpbb\request;
class type_cast_helper implements \phpbb\request\type_cast_helper_interface
{
/**
- * Recursively applies addslashes to a variable.
- *
- * @param mixed &$var Variable passed by reference to which slashes will be added.
- */
- public function addslashes_recursively(&$var)
- {
- if (is_string($var))
- {
- $var = addslashes($var);
- }
- else if (is_array($var))
- {
- $var_copy = $var;
- $var = array();
- foreach ($var_copy as $key => $value)
- {
- if (is_string($key))
- {
- $key = addslashes($key);
- }
- $var[$key] = $value;
-
- $this->addslashes_recursively($var[$key]);
- }
- }
- }
-
- /**
* Set variable $result to a particular type.
*
* @param mixed &$result The variable to fill
diff --git a/phpBB/phpbb/request/type_cast_helper_interface.php b/phpBB/phpbb/request/type_cast_helper_interface.php
index e22712dc0c..9671573bf1 100644
--- a/phpBB/phpbb/request/type_cast_helper_interface.php
+++ b/phpBB/phpbb/request/type_cast_helper_interface.php
@@ -19,13 +19,6 @@ namespace phpbb\request;
interface type_cast_helper_interface
{
/**
- * Recursively applies addslashes to a variable.
- *
- * @param mixed &$var Variable passed by reference to which slashes will be added.
- */
- public function addslashes_recursively(&$var);
-
- /**
* Set variable $result to a particular type.
*
* @param mixed &$result The variable to fill