dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b0686a
)
Gracefully fail on invalid title for target
author
Brion Vibber
<brion@users.mediawiki.org>
Sun, 8 Aug 2004 20:30:56 +0000
(20:30 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sun, 8 Aug 2004 20:30:56 +0000
(20:30 +0000)
includes/SpecialContributions.php
patch
|
blob
|
history
diff --git
a/includes/SpecialContributions.php
b/includes/SpecialContributions.php
index
a88da30
..
19a527a
100644
(file)
--- a/
includes/SpecialContributions.php
+++ b/
includes/SpecialContributions.php
@@
-26,6
+26,10
@@
function wfSpecialContributions( $par = "" )
$userCond = "";
$nt = Title::newFromURL( $target );
+ if ( !$nt ) {
+ $wgOut->errorpage( "notargettitle", "notargettext" );
+ return;
+ }
$nt->setNamespace( Namespace::getUser() );
$id = User::idFromName( $nt->getText() );