mutilated cgi script parameters on apache 2.0.44

This is a discussion on mutilated cgi script parameters on apache 2.0.44 within the Apache Web Server forums, part of the Web Server and Related Forums category; hi, the webpage starting the cgi looks as follows: <form ACTION="/cgi-bin/telsuche.pl" METHOD="...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-16-2003
Dieter Gebhardt
 
Posts: n/a
Default mutilated cgi script parameters on apache 2.0.44

hi,
the webpage starting the cgi looks as follows:
<form ACTION="/cgi-bin/telsuche.pl" METHOD="GET"...
here's (probably) the troubled cgi section:

$query_string = $ENV{'QUERY_STRING'};
($nname,$telefon,$org) = split(/&/, $query_string);
($dummy,$nname) = split(/=/, $nname);
....
$nname = ucfirst($nname);
$nname =~ s/%([\dA-Fa-f][\dA-Fa-f])/pack ("C", hex ($1))/eg;
....
$select = "exec stp_TelefonSuche '$nname','$telefon','$org'";...

The script connects to a database an starts a stored proc with the 3
parameters.
Everything works perfectly when the $nname doesn't contain any german
umlaut. If it does the script stops and apache writes an error message
like the following:

....DBD::Sybase::st execute failed: Server message number=105
severity=15 state=1 line=1 server=WUEDMS1text=Unclosed quotation mark
before the character string 'L??:???????????^A.^A..'. at
/srv/www/cgi-bin/telsuche.pl line 85., referer:
http://wuedev1.reg-ufr.bayern.de/reg-ufr/telefon.shtml

where 'L??:???... is the mutilated $nname Parameter.
There's no problem at all running the script from the command line.
I guess it must be a problem with apache.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0