1 sam2kb Jan 08, 2008 12:56
3 sam2kb Jan 08, 2008 13:41
Ok. But what should we put in /media/.htaccess to download requested .php files?
AddType application/??? .php :?:
4 yabba Jan 08, 2008 13:52
This appears to work :
AddHandler application/octet-stream .php
¥
5 sam2kb Jan 08, 2008 14:03
Thanks !
And one more question :)
How to navigate this rule to specific folder, in our case /media ?
6 yabba Jan 08, 2008 14:10
You should just need to upload it to your media folder, the rest of your blog won't be affected
¥
7 sam2kb Jan 08, 2008 14:25
It works.
And now .php file prints on the screen.
But when I put this string in root .htaccess, browser tried to download the file
Anyway, thank you. This is better than nothing. :)
8 yabba Jan 08, 2008 18:44
This was the reply on the dev list
Default Group permissions for Administrators:
Files: Edit ALL including protected.
Have you tried changing the extension as a non-admin user?
¥
9 sam2kb Jan 08, 2008 19:02
User can only change the ext when he granted appropriate permissions (modify protected files).
Shortly, when you can rename - you can change ext.
10 yabba Jan 08, 2008 19:54
That lost me a tad :
1) can a user change extensions , to non-protected extensions, without the permissions to modify protected files ?
2) can a user change the extension, to a protected extension, without the permissions to modify protected files ?
3) Will the world one day run out of beer and make me very unhappy?
Please note : I could probably answer all these by playing in admin but I haven't had a chance to try yet :p
¥
11 sam2kb Jan 08, 2008 20:05
1 - yes
2 - no
3 - never
12 yabba Jan 08, 2008 20:24
That's good enough for me for now then ;)
¥
13 sam2kb Jan 22, 2008 05:58
You can still do it in 2.4 version :(
14 fplanque Feb 03, 2008 00:04
sam2kb, this is NOT A BUG!
The ADMINS are GRANTED the PERMISSION to edit PHP files, especially (but not only) within skins!
15 sam2kb Feb 03, 2008 00:12
Maybe it's better to block this option in demo mode, or just put .htaccess file in media by default?
Thanks, reported to dev list
¥