summaryrefslogtreecommitdiff
path: root/indra/newview/llfloateravatarpicker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloateravatarpicker.cpp')
-rw-r--r--indra/newview/llfloateravatarpicker.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llfloateravatarpicker.cpp b/indra/newview/llfloateravatarpicker.cpp
index 8c39a8a2df..b44ebd043f 100644
--- a/indra/newview/llfloateravatarpicker.cpp
+++ b/indra/newview/llfloateravatarpicker.cpp
@@ -393,7 +393,9 @@ public:
//LLSDSerialize::toPrettyXML(content, ss);
//llinfos << ss.str() << llendl;
- if (isGoodStatus(status))
+ // in case of invalid characters, the avatar picker returns a 400
+ // just set it to process so it displays 'not found'
+ if (isGoodStatus(status) || status == 400)
{
LLFloaterAvatarPicker* floater =
LLFloaterReg::findTypedInstance<LLFloaterAvatarPicker>("avatar_picker");
@@ -405,7 +407,8 @@ public:
else
{
llinfos << "avatar picker failed " << status
- << " reason " << reason << llendl;
+ << " reason " << reason << llendl;
+
}
}
};