Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
Re:PHP Page Component - code exiting prematurely (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:PHP Page Component - code exiting prematurely
#1084
admin (Admin)
Admin
Posts: 475
graph
User Online Now Click here to see the profile of this user
Re:PHP Page Component - code exiting prematurely 2 Years, 2 Months ago Karma: 10  
I believe adding the URL parameters to the function: DataGrid :: SetHttpGetVars() will do the job.
Before the call to to $dgrid->Bind(); add:

$dgrid->SetHttpGetVars(array('option', 'Itemid'));
Off Topic: I must add however that there is an XSS injection vulnerability in the DataGrid code that handles this. You have to take that up with the developers. On line 3602:
echo "<input type='hidden' name='".$key."' id='".$key."' value='".((isset($_REQUEST[$key]))?$_REQUEST[$key]:"")."'>";
Should be changed to:
echo "<input type='hidden' name='".$key."' id='".$key."' value='".((isset($_REQUEST[$key]))?htmlentities($_REQUEST[$key], ENT_QUOTES, 'UTF-8'):"")."'>";
line 3636:
$a_url .= $key."=".((isset($_REQUEST[$key]))?$_REQUEST[$key]:"");
should be changed to:
$a_url .= $key."=".((isset($_REQUEST[$key]))?htmlentities($_REQUEST[$key], ENT_QUOTES, 'UTF-8'):"");
or similar code to convert HTML to corresponding HTML entities.
 
Report to moderator   Logged Logged  
 
Last Edit: 2009/11/14 15:12 By admin.
  The administrator has disabled public write access.
      Topics Author Date
    emo
PHP Page Component - code exiting prematurely
BigDawg 2009/11/12 06:59
    thread link
thread linkthread link Re:PHP Page Component - code exiting prematurely
admin 2009/11/12 10:13
    thread link
thread linkthread linkthread link Re:PHP Page Component - code exiting prematurely
BigDawg 2009/11/12 10:57
    thread link
thread linkthread linkthread linkthread link Re:PHP Page Component - code exiting prematurely
BigDawg 2009/11/12 11:03
    thread link
thread linkthread linkthread linkthread linkthread link Re:PHP Page Component - code exiting prematurely
admin 2009/11/13 05:49
    thread link
thread linkthread linkthread linkthread linkthread linkthread link Re:PHP Page Component - code exiting prematurely
BigDawg 2009/11/13 06:16
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:PHP Page Component - code exiting prematurely
admin 2009/11/13 07:44
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:PHP Page Component - code exiting prematurely
BigDawg 2009/11/13 16:53
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:PHP Page Component - code exiting prematurely
BigDawg 2009/11/13 17:08
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:PHP Page Component - code exiting prematurely
admin 2009/11/14 15:10
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:PHP Page Component - code exiting prematurely
BigDawg 2009/11/15 14:51
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.