You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sean Neakums <sn...@zork.net> on 2003/01/29 15:36:14 UTC
[users@httpd] mod_autoindex AddDescription directive file name escaping
What is the correct way to specify a file whose name that contains
square brackets? A simple
AddDescription "description" file_name_[with_brackets]
does not seem to work. Nor does backwhacking the square brackets
themselves. The version of Apache in use is 1.3.26.
--
/ |
[|] Sean Neakums | Size *does* matter.
[|] <sn...@zork.net> | That's why I use Emacs.
\ |
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_autoindex AddDescription directive file name
escaping
Posted by Sean Neakums <sn...@zork.net>.
commence Jeff Cohen quotation:
> Try one of the follows:
>
> AddDescription "description" filename
> e.g.
> AddDescription "Acrobat File Type" .pdf
>
> Or
> AddDescription "description" filename #if your file contains spaces
>
> AddDescription "Acrobat File Type" "/home/user/acrobat file.pdf"
The first variant is no use because I am applying descriptions to
individual files. I have tried the second, and it does not work.
The root of the problem seems to be that the filename contains square
brackets. If I replace these with the single-character match '?', the
description shows up, so I believe that I just need to know the
correct way to escape the brackets in the filename argument to
AddDescription.
--
/ |
[|] Sean Neakums | Size *does* matter.
[|] <sn...@zork.net> | That's why I use Emacs.
\ |
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] mod_autoindex AddDescription directive file name escaping
Posted by Jeff Cohen <ap...@gej-it.com>.
Try one of the follows:
AddDescription "description" filename
e.g.
AddDescription "Acrobat File Type" .pdf
Or
AddDescription "description" filename #if your file contains spaces
AddDescription "Acrobat File Type" "/home/user/acrobat file.pdf"
All the best,
Jeff Cohen
> -----Original Message-----
> From: Sean Neakums [mailto:sneakums@zork.net]
> Sent: Wednesday, January 29, 2003 10:02 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] mod_autoindex AddDescription directive file
> name escaping
>
> commence Joshua Slive quotation:
>
> > Try putting the filename in quotes.
>
> No joy.
>
> --
> / |
> [|] Sean Neakums | Size *does* matter.
> [|] <sn...@zork.net> | That's why I use Emacs.
> \ |
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_autoindex AddDescription directive file name
escaping
Posted by Sean Neakums <sn...@zork.net>.
commence Joshua Slive quotation:
> Try putting the filename in quotes.
No joy.
--
/ |
[|] Sean Neakums | Size *does* matter.
[|] <sn...@zork.net> | That's why I use Emacs.
\ |
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] mod_autoindex AddDescription directive file name
escaping
Posted by Joshua Slive <jo...@slive.ca>.
On Wed, 29 Jan 2003, Sean Neakums wrote:
> What is the correct way to specify a file whose name that contains
> square brackets? A simple
>
> AddDescription "description" file_name_[with_brackets]
>
> does not seem to work. Nor does backwhacking the square brackets
> themselves. The version of Apache in use is 1.3.26.
Try putting the filename in quotes.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org