 |
|
 |
|
Next: 5th Fast Track Automation batch from Quality Glob..
|
| Author |
Message |
External

Since: Aug 01, 2007 Posts: 2
|
(Msg. 1) Posted: Wed Aug 01, 2007 7:26 am
Post subject: Problem with links with form data Archived from groups: comp>lang>php (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Aug 11, 2004 Posts: 1367
|
(Msg. 2) Posted: Wed Aug 01, 2007 11:00 am
Post subject: Re: Problem with links with form data [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
wrote:
> Less than 1% of my users say they can not open links like this:
>
> index.php?variable=value&variable2=value2
>
> Is anyone aware of some firewall/security setting that would prevent
> people from clicking on such types of links?
>
As the others have said, the link may be invalid. Display your page
source - does it look OK?
If the variables and/or values have non-alphanumeric characters, are
they properly encoded? I've seen this, for instance, when a value
contains a space instead of the correct %20.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex RemoveThis @attglobal.net
================== >> Stay informed about: Problem with links with form data |
|
| Back to top |
|
 |  |
External

Since: Aug 22, 2005 Posts: 81
|
(Msg. 3) Posted: Wed Aug 01, 2007 11:58 am
Post subject: Re: Problem with links with form data [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
wrote:
> Less than 1% of my users say they can not open links like this:
>
> index.php?variable=value&variable2=value2
>
> Is anyone aware of some firewall/security setting that would prevent
> people from clicking on such types of links?
>
Hi,
In short: No, should work.
That is if the value1 and value2 are properly URL-encoded.
However, if memory serves me well, the right way to use & is & in URLs.
(I never do that for esthetical reasons and never had any trouble.  )
Can you isolate the 1%?
Do they all use the same OS or browser maybe?
Or are they all from one office or something like that?
Regards,
Erwin Moller >> Stay informed about: Problem with links with form data |
|
| Back to top |
|
 |  |
External

Since: Aug 08, 2006 Posts: 75
|
(Msg. 4) Posted: Wed Aug 01, 2007 11:58 am
Post subject: Re: Problem with links with form data [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, 01 Aug 2007 16:26:09 +0200, wrote:
> Less than 1% of my users say they can not open links like this:
>
> index.php?variable=value&variable2=value2
Just a wild stab in the dark: are the 7 encoded (like &)?
> Is anyone aware of some firewall/security setting that would prevent
> people from clicking on such types of links?
Nope, not here, posting sometimes, but simple GET string filtering I have
not yet discovered. Can't they get the link at all or do you see something
in the server logs, and if so, what?
--
Rik Wasmus >> Stay informed about: Problem with links with form data |
|
| Back to top |
|
 |  |
External

Since: Aug 08, 2006 Posts: 75
|
(Msg. 5) Posted: Wed Aug 01, 2007 11:58 am
Post subject: Re: Problem with links with form data [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, 01 Aug 2007 16:36:55 +0200, Erwin Moller
wrote:
> wrote:
>> Less than 1% of my users say they can not open links like this:
>> index.php?variable=value&variable2=value2
>> Is anyone aware of some firewall/security setting that would prevent
>> people from clicking on such types of links?
>>
>
> In short: No, should work.
> That is if the value1 and value2 are properly URL-encoded.
If the link is 'clicked', it should be urlencoded automatically me
thinks...
> However, if memory serves me well, the right way to use & is & in
> URLs.
> (I never do that for esthetical reasons and never had any trouble. )
Well, not in URL's, but if the URL is an HTML attribute then yes.
--
Rik Wasmus >> Stay informed about: Problem with links with form data |
|
| Back to top |
|
 |  |
External

Since: Aug 08, 2006 Posts: 75
|
(Msg. 6) Posted: Wed Aug 01, 2007 11:58 am
Post subject: Re: Problem with links with form data [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, 01 Aug 2007 16:40:34 +0200, Rik wrote:
> On Wed, 01 Aug 2007 16:36:55 +0200, Erwin Moller
> wrote:
>
>> wrote:
>>> Less than 1% of my users say they can not open links like this:
>>> index.php?variable=value&variable2=value2
>>> Is anyone aware of some firewall/security setting that would prevent
>>> people from clicking on such types of links?
>>>
>>
>> In short: No, should work.
>> That is if the value1 and value2 are properly URL-encoded.
>
> If the link is 'clicked', it should be urlencoded automatically me
> thinks...
Me thinks wrong, why the hell did I say that?
If a form is posted using a GET, it should be encoded automatically, not
in a straight URL.
So, in short:
$link = htmlspecialchars(<path>).'?'.urlencode(<query_string>);
--
Rik Wasmus >> Stay informed about: Problem with links with form data |
|
| Back to top |
|
 |  |
External

Since: Aug 08, 2006 Posts: 75
|
(Msg. 7) Posted: Wed Aug 01, 2007 11:58 am
Post subject: Re: Problem with links with form data [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Wed, 01 Aug 2007 16:44:23 +0200, Rik wrote:
> $link = htmlspecialchars(<path>).'?'.urlencode(<query_string>);
Damn, damn, damn, I'm gonna stop posting, I'm unusually thick today.
Not the entite querystring should be encoded obviously, only the 'name'
and 'value' part, not the & and '='..., and still as an attribute, all
should be hauled through htmlspecialchars()....
Last one before I leave:
$url = htmlspecialchars(
rawurlencode(<path>).'?'
.rawurlencode(<name>).'='.rawurlencode(<value>
.'&'
.rawurlencode(<name>).'='.rawurlencode(<value>));
--
Rik Wasmus >> Stay informed about: Problem with links with form data |
|
| Back to top |
|
 |  |
External

Since: Aug 08, 2006 Posts: 75
|
(Msg. 8) Posted: Wed Aug 01, 2007 11:59 am
Post subject: Re: Problem with links with form data [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: Aug 01, 2007 Posts: 2
|
(Msg. 9) Posted: Wed Aug 01, 2007 7:35 pm
Post subject: Re: Problem with links with form data [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Aug 1, 10:00 am, Jerry Stuckle wrote:
>
> If the variables and/or values have non-alphanumeric characters, are
> they properly encoded? I've seen this, for instance, when a value
> contains a space instead of the correct %20.
>
That was it. I was passing a url like path=http://www.mydomain.com ,
so now I encoded it . Strange is it worked fine for so many years, but
seems some browser/servers have problems with it. >> Stay informed about: Problem with links with form data |
|
| Back to top |
|
 |  |
External

Since: Aug 22, 2005 Posts: 81
|
(Msg. 10) Posted: Thu Aug 02, 2007 2:02 pm
Post subject: Re: Problem with links with form data [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Rik wrote:
> On Wed, 01 Aug 2007 16:51:59 +0200, Rik wrote:
>> rawurlencode(<path>).'?'
>
> I give up....
> Anyone who doesn't seem retarder care to explain?
>
> In the mean while, I'm gonna sit in a corner and cry.
Erwin passes Rik a beer and a nice quite corner to relax in.
Regards,
Erwin Moller >> Stay informed about: Problem with links with form data |
|
| Back to top |
|
 |  |
| Related Topics: | Problem with a contact me php form. Anyone look please? -
Form Data -> Variables or an Array? - Hi I need help! Forgive me I am a PHP newbie. I have a small script that enables me to send a form from an HTML page. I want to use the HTML formatted form because the design of my website is complex, and I don't want to have to mess around with..
Validating and Passing form data to Thanks Page - Hi all, SERIOUS newb here just beginning to look into php. I've tried a few solutions to my issue from snippets I've seen, but so far nothing has worked. In an attempt to stop email harvesting and SPAM issues (I get about 2,400 every 24 hours), I'm....
Popups from links - Heya all I have a script that allows my website to display the contents of a folder as links. I want those links to open as their MIME type (MP3 files) in a small window, displaying that file's name as an H2 tag. Can someone help me out? Here's the..
Parsing content for links - I have a content management system that has links within the content field in the database and I need to verify if those links are correct. What I need to have happen is have a php script query the database and then parse through the content field to fin... |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|