Skip Menu |
 

This queue is for tickets about the CGI-Simple CPAN distribution.

Report information
The Basics
Id: 127154
Status: new
Priority: 0/
Queue: CGI-Simple

People
Owner: Nobody in particular
Requestors: info [...] gwendragon.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



MIME-Version: 1.0
X-Spam-Status: No, score=-1.335 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_SOFTFAIL=0.665] autolearn=no
X-Cpan.org: This message routed through the cpan.org mail forwarding service. Please use PAUSE pause.perl.org to configure your delivery settings.
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <256175938.20180920191007 [...] gwendragon.de>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -1.335
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 59B262401A4 for <cpan-bug+CGI-Simple [...] hipster.bestpractical.com>; Thu, 20 Sep 2018 13:19:27 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E5kSNteUAMB6 for <cpan-bug+CGI-Simple [...] hipster.bestpractical.com>; Thu, 20 Sep 2018 13:19:25 -0400 (EDT)
Received: from xx1.develooper.com (xx1.develooper.com [207.171.7.115]) by hipster.bestpractical.com (Postfix) with ESMTPS id CE4F52400C5 for <bug-CGI-Simple [...] rt.cpan.org>; Thu, 20 Sep 2018 13:19:25 -0400 (EDT)
Received: from localhost (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with ESMTP id 06BB711FB3C for <bug-CGI-Simple [...] rt.cpan.org>; Thu, 20 Sep 2018 10:19:24 -0700 (PDT)
Received: from xx1.develooper.com (xx1.develooper.com [127.0.0.1]) by localhost (Postfix) with SMTP id 4006111FBE2 for <bug-CGI-Simple [...] rt.cpan.org>; Thu, 20 Sep 2018 10:19:21 -0700 (PDT)
Received: from sv2.lyl-canbys.de (sv2.lyl-canbys.de [213.133.110.246]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by xx1.develooper.com (Postfix) with ESMTPS id 83FFE11FB3C for <bug-CGI-Simple [...] rt.cpan.org>; Thu, 20 Sep 2018 10:19:16 -0700 (PDT)
Received: from dracanova.fritz.box (p549ED7FB.dip0.t-ipconnect.de [84.158.215.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by sv2.lyl-canbys.de (Postfix) with ESMTPSA id 5343CC0640 for <bug-CGI-Simple [...] rt.cpan.org>; Thu, 20 Sep 2018 19:10:17 +0200 (CEST)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gwendragon.de
Delivered-To: cpan-bug+CGI-Simple [...] hipster.bestpractical.com
Subject: CGI::Simple uses in method url() the env SCRIPT_NAME instead of preferred REQUEST_URI / SCRIPT_URI
Return-Path: <info [...] gwendragon.de>
X-RT-Mail-Extension: cgi-simple
X-Original-To: cpan-bug+CGI-Simple [...] hipster.bestpractical.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gwendragon.de; s=default; t=1537463417; bh=IJmpv/D75oCCZt5ag5H5tw5Q2gwxUpPa8VUd/folywM=; l=645; h=From:To:Subject; b=hJO2wtkwWrNqdECQdAjq1NY9VAza/BCrsuceyCEoQ0+U09YZ9oKJTJLIEAJQi1YI3 jeKbouHgAGdivbObRgnSvwIuUqF6xy4wvIwjWtjODrpCGwk8fTizt+np2MCFjHfRmq mDCwJUPImt07cqO1w3KmehUaLjJnPG4up/Xbm6+k=
X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' FROM_NAME_ONE_WORD 0.05, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_600_699 0, BODY_SIZE_7000_LESS 0, DKIM_ALIGNS 0, DKIM_SIGNATURE 0, SINGLE_URI_IN_BODY 0, SPF_PASS 0, URI_WITH_PATH_ONLY 0, __ANY_URI 0, __BAT_MSGID 0, __CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __DKIM_ALIGNS_1 0, __DKIM_ALIGNS_2 0, __FW_1LN_BOT_MSGID 0, __HAS_FROM 0, __HAS_MSGID 0, __HTTPS_URI 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, __NO_HTML_TAG_RAW 0, __SANE_MSGID 0, __SINGLE_URI_TEXT 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_MAILTO 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __blackholes.mail-abuse.org_TIMEOUT , __zen.spamhaus.org_ERROR '
Date: Thu, 20 Sep 2018 19:10:07 +0200
X-Spam-Level:
X-Greylist: delayed 535 seconds by postgrey-1.34 at xx1.develooper.com; Thu, 20 Sep 2018 10:19:16 PDT
X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2018.9.20.170916
To: bug-CGI-Simple [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: GwenDragon <info [...] gwendragon.de>
X-RT-Original-Encoding: ascii
X-RT-Interface: Email
Content-Length: 641
Download (untitled) / with headers
text/plain 641b
Hello, I found a issue which may be a trap for users havin rewrites on the webserver. CGI::Simple does not use environment SCRIPT_URI or REQUEST_URI for the creation of content of method url(). That differs from CGI.pm, but is unfortunately not mentioned in perldoc. CGI.pm uses the URI sent to browser [i.e. request_uri()] which is a practical use if the server uses rewrites access to script. CGI::Simple uses script_name() which leads to problems if a internal rewrite occurs. Would be nice to get a patch to be compatible to CGI.pm behavior. CGI.pm uses (https://metacpan.org/source/LEEJO/CGI-4.40/lib/CGI.pm#L2695)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.