From 3ad52463f633b060bee519e8aa4d6e9453fdc2aa Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 20 Sep 2010 19:34:44 -0700 Subject: more robust feed error handling, at the expense of performance. Pass profile owner through HTML (yuk) to the ajax updater - as browser pre-fetch totally buggers passing it via the server session. --- mod/update_profile.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/update_profile.php') diff --git a/mod/update_profile.php b/mod/update_profile.php index e5085f6ec..9a6729396 100644 --- a/mod/update_profile.php +++ b/mod/update_profile.php @@ -7,6 +7,8 @@ require_once('mod/profile.php'); function update_profile_content(&$a) { + $profile_uid = intval($_GET['p']); + header("Content-type: text/html"); echo "\r\n"; echo (($_GET['msie'] == 1) ? '
' : '
'); @@ -16,7 +18,7 @@ function update_profile_content(&$a) { // The only ones we need to fetch are those for new page additions, which we'll discover // on the client side and then swap the image back. - $text = profile_content($a,true); + $text = profile_content($a,$profile_uid); $pattern = "/]*) src=\"([^\"]*)\"/"; $replace = "