aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-11-25 22:15:13 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-11-25 22:15:13 +0100
commit9aa017d0f7ce13a11114cbae24b694e935931342 (patch)
treea6ad083b93deb4e335bf76b33a4c816340059bc1 /phpBB/phpbb/install/helper/iohandler/cli_iohandler.php
parent23f5b6debdd24cc1caefd3bb8cd6da96a88abe9a (diff)
downloadforums-9aa017d0f7ce13a11114cbae24b694e935931342.tar
forums-9aa017d0f7ce13a11114cbae24b694e935931342.tar.gz
forums-9aa017d0f7ce13a11114cbae24b694e935931342.tar.bz2
forums-9aa017d0f7ce13a11114cbae24b694e935931342.tar.xz
forums-9aa017d0f7ce13a11114cbae24b694e935931342.zip
[ticket/14875] Add method for raw input to request and add to installer
A method for retrieving raw input has been added to the request class. This will be used in the installer to retrieve the datatabase password while also allowing utf8 characters. Not escaping the input is ok in this case as it won't be put anywhere in this raw form and only be used to populate the entry for the password field in config.php. PHPBB3-14875
Diffstat (limited to 'phpBB/phpbb/install/helper/iohandler/cli_iohandler.php')
-rw-r--r--phpBB/phpbb/install/helper/iohandler/cli_iohandler.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php b/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php
index 196cdcdaab..4117a3dfd3 100644
--- a/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php
+++ b/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php
@@ -74,6 +74,20 @@ class cli_iohandler extends iohandler_base
return $result;
}
+ /**
+ * {@inheritdoc}
+ */
+ public function get_raw_input($name, $default)
+ {
+ return $this->get_input($name, $default, true);
+ }
+
+ /**
+ * Set input variable
+ *
+ * @param string $name Name of input variable
+ * @param mixed $value Value of input variable
+ */
public function set_input($name, $value)
{
$this->input_values[$name] = $value;