messy hack around "loss of session data"

Should go away if/when we switch to Auth remoteuser extension
This commit is contained in:
Adrian Malacoda 2018-08-12 05:30:18 -05:00
parent b365cfa58e
commit 5ee52eb5a1

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