Welcome Guest, Not a member yet? Register   Sign In
CI checking permitted URI chars....in a perl script?!?!
#1

[eluser]jrlooney[/eluser]
So as to not bloat this post, I wont explain the spaghetti i've been trapped in by having to incorporate an old CMS written in perl.

Here is my issue. The administration screens for my application are written in PHP using CI. Within one of those screens, I execute a system command - calling an old perl script that runs the compile (publish) routine for this old CMS we have. Eventually, that old perl script actually calls another PHP script to generate some nice dropdown navigation for the site being compiled. And that is where the problem hits - when that PHP script is called, CI is actually running the check on permitted characters in the URI (I'm not even sure how CI even has access that deep in this chain of scripts). I am getting the error about "The URI you submitted has disallowed characters"

So first of all, I really don't understand how CI is even running at the point it happens, and I really have no idea how to fix it (other than to completely remove CI from the equation and run this thing in a popup or something). But in case anyone can help, here's the order of execution and pertinent code from each script:

Admin screen is loaded via CI. In that view file I do this ('s' is just a reference to which account to compile):
Code:
$output = shell_exec("perl /home/acuweb/public_html/cgi-bin/aw/compile.pl ".$_GET['s']);

That compile.pl script begins to compile the site. When it gets to the point that it needs page navigation, it calls a PHP file that builds the nav HTML. It is this call that CI is returning the URI error. Code from this .pl script looks like this:
Code:
sub generate_superfish
{
my $phppath = $1 if (AcuLib::cl("/usr/bin/php") =~ /(.+)/);
my $scriptpath = $1 if (AcuLib::cl("/home/acuweb/public_html/cgi-bin/aw/generatesuperfish.php") =~ /(.+)/);
my $scenario = $1 if (AcuLib::cl("$main::form{'s'}") =~ /(.+)/);
my $output = `$phppath $scriptpath $scenario`;
If I dump that $output variable, I am seeing the "The URI you submitted has disallowed characters" error.

So first of all, how is CI even doing this within a completely separate perl script? And how to resolve? I've been trying different things with the
Code:
$config['permitted_uri_chars']
but nothing is working.

If anyone can help that'd be great. Otherwise I may just have to toss it into a popup and remove CI from the equation. Thanks for any help/suggestions


Messages In This Thread
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-15-2013, 10:45 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-15-2013, 02:00 PM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-15-2013, 02:11 PM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-15-2013, 06:01 PM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-15-2013, 06:38 PM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-16-2013, 03:05 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 06:39 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 07:16 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 07:29 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 07:42 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 07:45 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 07:57 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 08:02 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 08:03 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 08:12 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 08:38 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 09:47 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 10:00 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 10:04 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 10:12 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 10:12 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 10:15 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 10:24 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 03-19-2013, 10:35 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 04-05-2013, 08:25 AM
CI checking permitted URI chars....in a perl script?!?! - by El Forum - 04-05-2013, 08:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB