r114675 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r114674
|
r114675
|
r114676
>
Date:
23:50, 2 April 2012
Author:
tstarling
Status:
deferred
Tags:
live
Comment:
Fix infinite loop, apparently readdir(false) === null
Modified paths:
/branches/wmf/1.19wmf1/extensions/ConfirmEdit/FancyCaptcha.class.php
(modified) (
history
)
Diff
[
purge
]
Index: branches/wmf/1.19wmf1/extensions/ConfirmEdit/FancyCaptcha.class.php
—
—
@@ -97,6 +97,9 @@
98
98
99
99
// Check which subdirs are actually present...
100
100
$dir = opendir( $directory );
101
+ if ( !$dir ) {
102
+ return false;
103
+ }
101
104
while ( false !== ( $entry = readdir( $dir ) ) ) {
102
105
if ( ctype_xdigit( $entry ) && strlen( $entry ) == 1 ) {
103
106
$dirs[] = $entry;
Status & tagging log
15:00, 11 October 2012
😂
(
talk
|
contribs
)
changed the
status
of r114675
[
removed:
new
added:
deferred]
15:56, 22 April 2012
Krinkle
(
talk
|
contribs
)
changed the
tags
for r114675
[
removed:
1.20
added:
live]
04:11, 3 April 2012
Aaron Schulz
(
talk
|
contribs
)
changed the
tags
for r114675
[
added:
1.20]