Closed GoogleCodeExporter closed 9 years ago
Note that any sort of meta-refresh breaks the content frame, since none of them
are
proxied.
Original comment by kril...@gmail.com
on 24 May 2010 at 9:04
Mostly fixable by noting that the HTML DTD only allows content="" in meta tags,
so it should be safe to
replace them in general.
This will at least proxify the URL so that it refreshes in a way that
WebAnywhere can handle.
// Automatic refreshes are also bad for accessibility.
//$_response_body = preg_replace('#http-equiv="Refresh"#',
'http-equiv="Refresh2"', $_response_body);
$_response_body = preg_replace_callback('#content="(?:\d+;)?(.*)"#', function ($match) {
global $_script_url;
global $_config;
return 'content="0;'. $_script_url . '?' . $_config['url_var_name'] . '=' . encode_url($match[1]) . '"';
}, $_response_body);
Original comment by kril...@gmail.com
on 24 May 2010 at 10:02
This issue was closed by revision r296.
Original comment by kril...@gmail.com
on 28 May 2010 at 9:53
Original issue reported on code.google.com by
kril...@gmail.com
on 24 May 2010 at 8:58