View previous topic :: View next topic |
Author |
Message |
brad -
Joined: 01 Sep 2002 Posts: 16 Location: TX
|
Posted: Sun May 11, 2003 11:04 pm Post subject: CGI parameters |
|
|
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 |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Mon May 12, 2003 8:01 pm Post subject: Re: CGI parameters |
|
|
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 |
|
|
brad -
Joined: 01 Sep 2002 Posts: 16 Location: TX
|
Posted: Mon May 12, 2003 11:50 pm Post subject: |
|
|
thanks aprelium! helpful as always :D |
|
Back to top |
|
|
|