Class FileUploadsFilter
Checks uploaded files in the web request for invalid extensions.
Intended as a catch-all for attempted arbitrary file type uploads.
- CComponent
- CFilter implements IFilter
- FileUploadsFilter
Package: application\components\filters
Author: Demitri Morgan <demitri@x2engine.com>
Located at x2engine/protected/components/filters/FileUploadsFilter.php
Author: Demitri Morgan <demitri@x2engine.com>
Located at x2engine/protected/components/filters/FileUploadsFilter.php
public
|
|
public
|
|
protected
boolean
|
filter(),
init(),
postFilter()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
string |
EXT_BLACKLIST
|
'/\.\s*(?P<ext>html|htm|js|jsb|mhtml|mht|xhtml|xht|php|pht|phtml|php3|php4|php5|phps|shtml|jhtml|pl|py|cgi|exe|scr|dll|msi|vbs|bat|com|pif|cmd|vxd|cpl|ini|conf|cnf|key|iv|htaccess)\b/i' |
#
Regular expression for blacklisted files. |