* Disallow uploading any files with ".php." in the filename
+ (garvinhicking)
This commit is contained in:
parent
fc7da5f2f6
commit
6c87053f31
@ -3,6 +3,9 @@
|
||||
Version 1.5 ()
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Disallow uploading any files with ".php." in the filename
|
||||
(garvinhicking)
|
||||
|
||||
* Prevent password autocompletion for user passwords to prevent
|
||||
possible mismatch. In media manager popup, fix bug that did
|
||||
not properly forward to image selection after upload (onli)
|
||||
|
@ -24,7 +24,7 @@ function serendipity_isActiveFile($file) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$core = preg_match('@\.(php[345]?|[psj]html?|aspx?|cgi|jsp|py|pl)$@i', $file);
|
||||
$core = preg_match('@\.(php.*|[psj]html?|aspx?|cgi|jsp|py|pl)$@i', $file);
|
||||
if ($core) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user