.view is all well and good, however, there isn't any protection by .htaccess.
There are two solutions here.
- Add an .htaccess disallowing *.view
- Adopt the standard views *.inc file extension
Solution 2 is probably the best considering it is in line with views/drupal coding conventions and *.inc files are already disallowed in the drupal root .htaccess file.
I've included a patch for solution 2.
| Comment | File | Size | Author |
|---|---|---|---|
| view-to-inc.patch | 2.64 KB | dstol |
Comments
Comment #1
mavimo commentedI think solution 2 can possible generate some error:
<?phpdeclaration on top of file)Comment #2
pescetti commentedIn the 3.x branch (the only active one) we now allow --output=files|includes|bulk with the following meaning: