SilverExploit Posted May 14, 2012 Posted May 14, 2012 I accidentally deleted my redirect.php file while I was working on a module, can someone be so kind as to paste the content of their redirect here! Thanks :) Quote
PineDominator Posted May 14, 2012 Posted May 14, 2012 <?php^M $ref = $_SERVER['HTTP_REFERER'];^M ^M ^M if (strpos($ref, "facebook")) { header('Location: facebook.html'); }^M if (strpos($ref, "twitter")) { header('Location: twitter.html'); }^M ^M require('error.php');^M ^M ?>^M Quote
brianzimm Posted May 14, 2012 Posted May 14, 2012 <?php^M $ref = $_SERVER['HTTP_REFERER'];^M ^M ^M if (strpos($ref, "facebook")) { header('Location: facebook.html'); }^M if (strpos($ref, "twitter")) { header('Location: twitter.html'); }^M ^M require('error.php');^M ^M ?>^M Think you need to drop the ^M from the php page <?php $ref = $_SERVER['HTTP_REFERER']; if (strpos($ref, "facebook")) { header('Location: facebook.html'); } if (strpos($ref, "twitter")) { header('Location: twitter.html'); } require('error.php'); ?> Quote
PineDominator Posted May 14, 2012 Posted May 14, 2012 Think you need to drop the ^M from the php page <?php $ref = $_SERVER['HTTP_REFERER']; if (strpos($ref, "facebook")) { header('Location: facebook.html'); } if (strpos($ref, "twitter")) { header('Location: twitter.html'); } require('error.php'); ?> that's exactly how nano displays it with freshly flashed 2.0.0 and never been used;-) Quote
brianzimm Posted May 16, 2012 Posted May 16, 2012 That is very strange. Looks like a found an answer http://stackoverflow.com/questions/6066380/strange-characters-m-php-can-not-identify The file could have been edited in windows and saved with the ^M As long as php in the pineapple ignores it it should be fine. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.