Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: How to correct   without trailing ";" |
|
Author |
|
andre.fischer
Joined: 31 Jan 2014 Posts: 8 Location: Canada, Toronto
|
Posted: Fri 27 May '16 21:00 Post subject: How to correct   without trailing ";" |
|
|
I'm running Apache 2.4.18 on a RHEL 6.6 platform. I'm running Apache as a Reverse Proxy to a Callidus Application Server.
For some reason, Callidus is not always adding a trailing ";" to an   statement. Apache handles the " " statements correctly; but one without the trailing ";" get translated into "&nbsp", which causes the browser to added "nbsp" to text fields.
I've tried substituting this using:
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s| [^;]| |i"
But it doesn't work.
Any thoughts?
Andre Fischer. |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Fri 27 May '16 23:03 Post subject: |
|
|
This works for me
Code: | AddOutputFilterByType SUBSTITUTE text/html
# Append a semi-colon to every  
Substitute "s| | |i"
# Remove any doubles (;;) caused by the above substitution
Substitute "s| ;| |qi"
# Note: do not use the 'q' if you have more substitutions to do. |
The html file has: Code: | <p>Test me out</p>
Missing ;   Not Missing ;  <br />
Not <br />
Missing ;   <br />
Missing ;   <br />
Not <br />
Missing ;   <br />
|
Apache outputs Code: | <p>Test me out</p>
Missing ; Not Missing ; <br />
Not <br />
Missing ; <br />
Missing ; <br />
Not <br />
Missing ; <br /> |
|
|
Back to top |
|
andre.fischer
Joined: 31 Jan 2014 Posts: 8 Location: Canada, Toronto
|
Posted: Sun 29 May '16 13:50 Post subject: |
|
|
Thank you! This helped provide a working solution! |
|
Back to top |
|
|
|
|
|
|