Security fixes from Tim Coen (file upload, comment token escaping, 2k11 js comment name escaping)
This commit is contained in:
@ -18,7 +18,7 @@ function serendipity_isActiveFile($file) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$core = preg_match('@\.(php.*|[psj]html?|aspx?|cgi|jsp|py|pl)$@i', $file);
|
||||
$core = preg_match('@\.(php.*|[psj]html?|pht|aspx?|cgi|jsp|py|pl)$@i', $file);
|
||||
if ($core) {
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user