Partially reverted bits from r108300. Not allowing underscores is too restrictive...
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 7 Jan 2012 03:17:17 +0000 (03:17 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 7 Jan 2012 03:17:17 +0000 (03:17 +0000)
commit049b7002fc592dfdf011d56a1f5c444490ea6fff
tree42fec36261fca243e3b4acfd707977dcc0995045
parent7d923a93600652675f013776de842ba5003b69e0
Partially reverted bits from r108300. Not allowing underscores is too restrictive and breaks on default DB name value suggested by installer. Azure can use resolveContainerName() to enforce its extra restrictions. A new resolveWikiId() function was added to allow for it to mangle the wiki ID by translating underscores. Also restored previous size limit in isValidContainerName() since it makes sense to either go all the way lowest-common-denominator or not here (in this case not). Preserved "first char is a alphanumeric" check since it's pretty weird to have anything else.
includes/filerepo/backend/FileBackend.php