dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SECURITY: jquery.makeCollapsible: Escape user-generated CSS selectors
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialCreateAccount.php
diff --git
a/includes/specials/SpecialCreateAccount.php
b/includes/specials/SpecialCreateAccount.php
index
f06a192
..
73beafc
100644
(file)
--- a/
includes/specials/SpecialCreateAccount.php
+++ b/
includes/specials/SpecialCreateAccount.php
@@
-119,7
+119,12
@@
class SpecialCreateAccount extends LoginSignupSpecialPage {
} else {
$out->addWikiMsg( 'accountcreatedtext', $user->getName() );
}
} else {
$out->addWikiMsg( 'accountcreatedtext', $user->getName() );
}
- $out->addReturnTo( $this->getPageTitle() );
+
+ $rt = Title::newFromText( $this->mReturnTo );
+ $out->addReturnTo(
+ ( $rt && !$rt->isExternal() ) ? $rt : $this->getPageTitle(),
+ wfCgiToArray( $this->mReturnToQuery )
+ );
return;
}
}
return;
}
}
@@
-159,7
+164,7
@@
class SpecialCreateAccount extends LoginSignupSpecialPage {
}
protected function logAuthResult( $success, $status = null ) {
}
protected function logAuthResult( $success, $status = null ) {
- LoggerFactory::getInstance( 'auth
manager
' )->info( 'Account creation attempt', [
+ LoggerFactory::getInstance( 'auth
events
' )->info( 'Account creation attempt', [
'event' => 'accountcreation',
'successful' => $success,
'status' => $status,
'event' => 'accountcreation',
'successful' => $success,
'status' => $status,