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:
568ec10
)
Tweak for E_STRICT warning "Undefined index: in includes/MimeMagic.php on line...
author
Nick Jenkins
<nickj@users.mediawiki.org>
Mon, 23 Apr 2007 01:41:19 +0000
(
01:41
+0000)
committer
Nick Jenkins
<nickj@users.mediawiki.org>
Mon, 23 Apr 2007 01:41:19 +0000
(
01:41
+0000)
curl --silent --include --globoff -F 'f'='..' -F 'w'='1930' -F 'r'='\</rp></dt>' 'http://localhost/wiki/thumb.php'
(Only happens because E_STRICT seems to disable the @ error control operator)
includes/MimeMagic.php
patch
|
blob
|
history
diff --git
a/includes/MimeMagic.php
b/includes/MimeMagic.php
index
516a3cd
..
df7a474
100644
(file)
--- a/
includes/MimeMagic.php
+++ b/
includes/MimeMagic.php
@@
-262,7
+262,7
@@
class MimeMagic {
function getTypesForExtension($ext) {
$ext= strtolower($ext);
- $r=
@$this->mExtToMime[$ext]
;
+ $r=
isset( $this->mExtToMime[$ext] ) ? $this->mExtToMime[$ext] : null
;
return $r;
}