2 Replies - 710 Views - Last Post: 18 March 2010 - 08:51 PM Rate Topic: -----

#1 ruslan40   User is offline

  • New D.I.C Head

Reputation: 4
  • View blog
  • Posts: 34
  • Joined: 13-September 08

Is there any way to filter certain elements within pages before they a

Posted 18 March 2010 - 07:52 PM

Hello,

I'll try to be short and get right to defining the problem. We have an ASP.NET 2 application (eCommerce package) running on IIS (Windows Server 2003). The main site's page(s) are using plain HTTP (no SSL), but the whole checkout process and the shopping cart page is using SSL (HTTPS). Now, the problem is that the site's header is located in a template file, and inside it it has a plain HTML 'img' tag calling an image with the "http://" portion hard-coded into it... This header appears on absolutely every page (including the https pages), and due to its insecure image tag, a warning box pops up in IE on every stage of the checkout process...

Now, the problem: The live application cannot be touched in any way (no changes can be made to the template (so simply changing "http://" to "//" is not an option), IIS cannot be restarted, and the website/app pool cannot be restarted). Is there any way in the world (maybe plugin for IIS or a setting somewhere) that I can filter the pages right before they are served to replace the '<img src="http://example.com/image.jpg">' with '<img src="//example.com/image.jpg">' in the final HTML? Possibly via a regular expression or something?

Thanks to everybody in advance.

Is This A Good Question/Topic? 0
  • +

Replies To: Is there any way to filter certain elements within pages before they a

#2 Jayman   User is offline

  • Student of Life
  • member icon

Reputation: 423
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

Re: Is there any way to filter certain elements within pages before they a

Posted 18 March 2010 - 08:40 PM

I'm not aware of anyway, especially since its hard coded.

Any particular reason you can't modify the template?
Was This Post Helpful? 0
  • +
  • -

#3 ruslan40   User is offline

  • New D.I.C Head

Reputation: 4
  • View blog
  • Posts: 34
  • Joined: 13-September 08

Re: Is there any way to filter certain elements within pages before they a

Posted 18 March 2010 - 08:51 PM

View PostJayman, on 18 March 2010 - 07:40 PM, said:

I'm not aware of anyway, especially since its hard coded.

Any particular reason you can't modify the template?


Modifying the template forces the whole application to restart, and unfortunately, there is some form of bug in the ecommerce application that leaves the database in an inconsistent state due to its own caching mechanism. This in turn results in the site not being able to start back up until we run database maintenance and manually clear the application's cache (all of which could take more than an hour)... Risking the site being nonoperational for that long is unacceptable (happens 9 out of 10 times) as this is a very high-volume site...

So I'm trying to figure out a way to fix an issue in the template without touching the running process...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1