[nycphp-talk] Fix for IE Security Alert " You are about to be redirected to a connection that is not secure"
Cliff Hirsch
cliff at pinestream.com
Sat Jun 16 12:42:27 EDT 2007
On 6/16/07 12:15 PM, "Andy Dirnberger" <dirn at dirnonline.com> wrote:
> It looks like all the C# does is decode the URL of the page to which you
> want to redirect. The page then uses JavaScript (window.location.replace)
> to actually handle the redirect.
>
> You should be able to accomplish this with something like:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <?php
> $to = urldecode ($_GET ['to']);
> ?>
> <html xmlns="http://www.w3.org/1999/xhtml" >
> <head>
> <script type="text/javascript" language="javascript">
> <!--
> window.location.replace ("<?php echo $to; ?>");
> -->
> </script>
> <title></title>
> </head>
> <body></body>
> </html>
Andy:
Awesome! Seems simple now that you "decoded" it. When I first saw the
foreign language, it looked like gibberish.
Cliff
More information about the talk
mailing list