php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14360 Script ends on >
Submitted: 2001-12-06 06:30 UTC Modified: 2001-12-06 06:36 UTC
From: Thomas dot Seuring at daimlerchrysler dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.6 OS: Windows 2000
Private report: No CVE-ID: None
 [2001-12-06 06:30 UTC] Thomas dot Seuring at daimlerchrysler dot com
I'm using a generated Script of the PHAKT-Software on a Windows 2000 and Apache Server.

The complete Script is:

<?php
// *** Restrict Access To Page: Grant or deny access to this page
$KT_authorizedUsers=" a";
$KT_authFailedURL=" ../ierraccess.php";
$KT_grantAccess=0;
session_start();
if (isset($HTTP_SESSION_VARS["KT_Username"])) {
  if (false || !(isset($HTTP_SESSION_VARS["KT_UserAuthorization"])) || $HTTP_SESSION_VARS["KT_UserAuthorization"]=="" || strpos($KT_authorizedUsers, $HTTP_SESSION_VARS["KT_UserAuthorization"])) {
    $KT_grantAccess = 1;
  }
}
if (!$KT_grantAccess) {
  $KT_qsChar = "?";
  if (strpos($KT_authFailedURL, "?")) $KT_qsChar = "&";
  $KT_referrer = $PHP_SELF;
  if (strlen($QUERY_STRING) > 0) $KT_referrer .= "?" . $QUERY_STRING;
  $KT_authFailedURL = $KT_authFailedURL . $KT_qsChar . "accessdenied=" . urlencode($KT_referrer);
  header("Location: $KT_authFailedURL");
  exit;
}
?>

On

if (strlen($QUERY_STRING) > 0) $KT_referrer .= "?" . $QUERY_STRING;

The PHP Engine ends after the >.

I think PHP interpretes the > as end of the Scripting Section.

I hope you could help me on this.

Yours

Tom


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-06 06:36 UTC] mfischer@php.net
Ask for support questions at php-general@lists.php.net .

This is most likely a programming error.

Bogus.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 21:01:29 2024 UTC