Welcome to WebmasterWorld Guest from 54.145.44.134

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Server Re-writes Link

Problem with server converting ; to %3b

     

mgravlee

4:50 pm on Feb 6, 2010 (gmt 0)

5+ Year Member



We've been using the cgi/perl banner rotator program webadverts for years. It rotates the banners and creates a clickable link like the first link below. Now when you click it has started converting the ; in the link to the html equivalent %3b which breaks the link. You can see it at <snip>. It's the 468x60 link in the top center of the page.

What's causing this? I haven't modified the program in years.
example.com/cgi-bin/webadverts/ads.pl?banner=critterpages;time=1265473788;zone=exampledotcom

example.com/cgi-bin/webadverts/ads.pl?banner=critterpages%3btime=1265473788%3bzone=exampledotcom

[edited by: jdMorgan at 8:44 pm (utc) on Feb 7, 2010]
[edit reason] No URLs, please. Use example.com only. See TOS and Charter [/edit]

jdMorgan

8:51 pm on Feb 7, 2010 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Something changed somewhere, as the query string is now being URL-encoded, whereas before it was not. Perhaps your host upgraded the server, or PERL, or changed some of the default settings?

This points out a good reason to stick with standards and use ampersands instead of 'special' query parameter delimiters like semicolons.

It's interesting that this causes a failure, as most script writers would opt to run the input through a URL-decode function (often a built-in language function) before examining it.

You could use mod_rewrite to fix these requested URLs if they're being requested from your own server, but it might be more appropriate to find out what changed (and why), in case that change might also have some other less-obvious but equally-serious negative effects on your site. Other than that, there would just be the overhead of running the extra code for all "ads.pl" requests.

Jim

mgravlee

9:37 pm on Feb 7, 2010 (gmt 0)

5+ Year Member



Thanks, Jim!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month