forked from GNUsocial/gnu-social
		
	Remove additional output as response to updateprofile.
This output breaks our own response validation and is not part of the OMB spec.
This commit is contained in:
		@@ -34,6 +34,8 @@ class UpdateprofileAction extends Action
 | 
				
			|||||||
            $server = omb_oauth_server();
 | 
					            $server = omb_oauth_server();
 | 
				
			||||||
            list($consumer, $token) = $server->verify_request($req);
 | 
					            list($consumer, $token) = $server->verify_request($req);
 | 
				
			||||||
            if ($this->update_profile($req, $consumer, $token)) {
 | 
					            if ($this->update_profile($req, $consumer, $token)) {
 | 
				
			||||||
 | 
					                header('HTTP/1.1 200 OK');
 | 
				
			||||||
 | 
					                header('Content-type: text/plain');
 | 
				
			||||||
                print "omb_version=".OMB_VERSION_01;
 | 
					                print "omb_version=".OMB_VERSION_01;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        } catch (OAuthException $e) {
 | 
					        } catch (OAuthException $e) {
 | 
				
			||||||
@@ -173,10 +175,6 @@ class UpdateprofileAction extends Action
 | 
				
			|||||||
                    return false;
 | 
					                    return false;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            header('HTTP/1.1 200 OK');
 | 
					 | 
				
			||||||
            header('Content-type: text/plain');
 | 
					 | 
				
			||||||
            print 'Updated profile';
 | 
					 | 
				
			||||||
            print "\n";
 | 
					 | 
				
			||||||
            return true;
 | 
					            return true;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user