|
Posted by mbstevens on February 24, 2006, 9:06 am
Please log in for more thread options
Crimperman wrote:
> Hi,
>
> need some advice on URIs
>
> In a dynamic page (perl driven) we list a number of items presented in
> an hierarchical tree structure. Within that page is a form which allows
> you to search for items containing various strings (trying to get the
> users to *remember* CTRL+F was proving fruitless). The results are then
> presented at the top of the page with links to the relative anchor
> references (<a href="#foo">) . When clicked these would take you to
> that item in the hierarchical tree.
>
> The problem is that the URI of the page itself contains CGI parameters
> ( e.g. http://www.foo.com/script.cgi?p=1&r=2 ) and these are carried
> over to the URIs containing the anchors ( e.g.
> http://www.foo.com/script.cgi?p=1&r=2#foo ).
>
> These URIs containing parameters and anchors work in IE (6 and below)
> but not in Moziall,Firefox, Konqueror or Opera. Any ideas on what I can
> do to enable the same functionality cross-browser?
>
> regards
> Crimperman
>
A number of URI characters must be encoded, one of which is "#".
Use "%23" for it. Google "URI encoding" for more detail.
If you don't know about this already,
you _may_ also have written your script in a way that
crackers can get into easily.
Google for "Perl detainting" and "Perl CGI security" and such.
Be sure to use cgi.pm instead of your own cgi interface -- it
has many security checks built in that you may not have thought
about.
--
mbstevens
http://www.mbstevens.com/
|