CGI parameters

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
brad
-


Joined: 01 Sep 2002
Posts: 16
Location: TX

PostPosted: Sun May 11, 2003 11:04 pm    Post subject: CGI parameters Reply with quote

If you enter html code into cgi parameters, it is mishandled by the config pages and displayed as actualy html code instead of what you wrote. For example, if I wanted to make a link to my email a server variable called WEBMASTER_EMAIL, I can set it to "mailto:user@domain" and enter
Code:
<a href="<?php echo $_SERVER["WEBMASTER_EMAIL"]; ?>">webmaster</a>
But if I want to make the <a> tag a part of the variable, it screws up the cgi parameter line for that entry and also messes up the modify cgi variable page. Might this problem be addressed in future releases?

brad
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon May 12, 2003 8:01 pm    Post subject: Re: CGI parameters Reply with quote

brad wrote:
If you enter html code into cgi parameters, it is mishandled by the config pages and displayed as actualy html code instead of what you wrote. For example, if I wanted to make a link to my email a server variable called WEBMASTER_EMAIL, I can set it to "mailto:user@domain" and enter
Code:
<a href="<?php echo $_SERVER["WEBMASTER_EMAIL"]; ?>">webmaster</a>
But if I want to make the <a> tag a part of the variable, it screws up the cgi parameter line for that entry and also messes up the modify cgi variable page. Might this problem be addressed in future releases?

brad

This is not an Abyss problem. This is a PHP coding issue and it is up to you to "filter" what you echo as the value of a tag.
Have a look on the PHP function htmlentities that does that for you.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
brad
-


Joined: 01 Sep 2002
Posts: 16
Location: TX

PostPosted: Mon May 12, 2003 11:50 pm    Post subject: Reply with quote

thanks aprelium! helpful as always :D
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group