[Debian-l10n-devel] [DDTP] Mssing URL encoding for packages with + (plus) sign in their name
s3v
c0llapsed at yahoo.it
Sun Apr 9 11:11:28 UTC 2017
Hi,
please fix the blank page ("NO PARAM") displayed when the package name contains a
+ (plus) sign, i.e. by clicking the "g++" package link at [1]
I attach a possible patch.
--- db2web.pl 2017-04-09 13:08:14.814964554 +0200
+++ db2web2.pl 2017-04-09 13:09:15.693666488 +0200
@@ -5,4 +5,5 @@
use DBI;
+use CGI qw(escape);
my $start= shift(@ARGV);
@@ -39,5 +40,5 @@
my $package= shift(@_);
- print "<h4><a href=\"ddt.cgi?package=$package\">$package</a></h4>\n";
+ print "<h4><a href=\"ddt.cgi?package=".escape($package)."\">$package</a></h4>\n";
my $sth = $dbh->prepare("SELECT description_id FROM description_tb WHERE
package='$package'");
[1] http://ddtp2.debian.net/g.html
Thanks and happy Palm Sunday.
More information about the Debian-l10n-devel
mailing list