Skip to content

Commit 4541def

Browse files
committed
Merge branch 'security/fix-bug' into main
2 parents 5ed350f + eb640af commit 4541def

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

web/src/app/WebApp/Installers/DokuWiki/DokuWikiSetup.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class DokuWikiSetup extends BaseSetup {
3131
'0: Open Wiki (read, write, upload for everyone)', // 0
3232
'1: Public Wiki (read for everyone, write and upload for registered users)', // 1
3333
'2: Closed Wiki (read, write, upload for registered users only)' // 3
34-
],
34+
],
3535
],
3636
'content_license' => [
3737
'type' => 'select',
@@ -85,15 +85,15 @@ public function install(array $options = null, &$status=null)
8585
. "--url $installUrl "
8686
. "--header 'Content-Type: application/x-www-form-urlencoded' "
8787
. "--data l=en "
88-
. "--data 'd[title]=" . $options['wiki_name'] . "' "
88+
. "--data 'd[title]=" . rawurlencode($options['wiki_name']) . "' "
8989
. "--data 'd[acl]=on' "
90-
. "--data 'd[superuser]=" . $options['superuser'] . "' "
91-
. "--data 'd[fullname]=" . $options['real_name'] . "' "
92-
. "--data 'd[email]=" . $options['email'] . "' "
93-
. "--data 'd[password]=" . $options['password'] . "' "
94-
. "--data 'd[confirm]=" . $options['password'] . "' "
95-
. "--data 'd[policy]=" . substr($options['initial_ACL_policy'], 0, 1) . "' "
96-
. "--data 'd[license]=" . explode(":", $options['content_license'])[0] . "' "
90+
. "--data 'd[superuser]=" . rawurlencode($options['superuser']) . "' "
91+
. "--data 'd[fullname]=" . rawurlencode($options['real_name']) . "' "
92+
. "--data 'd[email]=" . rawurlencode($options['email']) . "' "
93+
. "--data 'd[password]=" . rawurlencode($options['password']) . "' "
94+
. "--data 'd[confirm]=" . rawurlencode($options['password']) . "' "
95+
. "--data 'd[policy]=" . substr(rawurlencode($options['initial_ACL_policy']), 0, 1) . "' "
96+
. "--data 'd[license]=" . explode(":", rawurlencode($options['content_license'])[0]) . "' "
9797
. "--data submit=";
9898

9999
exec($cmd, $output, $return_var);

0 commit comments

Comments
 (0)