Browse Source

messy hack around "loss of session data"

Should go away if/when we switch to Auth remoteuser extension
auth_remoteuser
Adrian Malacoda 1 year ago
parent
commit
5ee52eb5a1
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      Dockerfile

+ 6
- 0
Dockerfile View File

@@ -30,6 +30,12 @@ RUN chown -R www-data:www-data $SOURCE_ROOT
RUN cd "$WIKI_SOURCE/maintenance" && \
sh -c 'for TOOL in *.php; do LINK="/usr/bin/$(basename $TOOL .php)"; echo "#!/bin/sh\nphp $WIKI_SOURCE/maintenance/$TOOL \$@" > $LINK; chmod +x $LINK; done'

# 12 August 2018: Messy hack to make "loss of session data"
# errors go away.
# TODO: Rewrite Auth_SMF.php to use MW 1.27+ SessionManager/AuthManager
# interface instead of legacy AuthPlugin interface.
RUN sed -i 's/$this->getEditTokenObject( $salt, $request )->match( $val, $maxage )/true/g' "$WIKI_SOURCE/includes/user/User.php"

# Add our scripts
ADD scripts scripts


Loading…
Cancel
Save