Drupal apparently has a list of file extensions that it allows to be uploaded. Today's mission, should you accept it, is simple:
This message will self destruct in 10µs, etc.
Ok. Not too hard, right? So I go looking around the entire admin section. Can't find it. Google around for help on it. There are instructions which are, well, wrong. The say to click on things which do not exist.
Clearly, time to UTSL. A little grepping shows that it can be set per-role (cool!) by a variable called upload_extensions_$rid where $rid is the id number of the role. A little grepping in the source for where that can be set leads to an admin page which, for unknown reasons, does not work. Ok. Whatever. To the DB!
UPDATE variable SET value = 's:76:"jpg jpeg gif png txt html doc xls pdf ppt pps zip rar 7z diff gz bz2 ver upk";' WHERE name = 'upload_extensions_5';
Still didn't work. Some more reading of code leads to another query: DELETE FROM cache WHERE cid = 'variables';
(Next week's mission: Figuring out why the 'full html' input is mangling my HTML...)
Don't apply the attached .upk file to your OSD. That'd be a really bad idea.

Comments
Post new comment