From 77009a366faeb1b1d9fd3ae9eeca55bcb011c49a Mon Sep 17 00:00:00 2001 From: Callum Prentice <callum@lindenlab.com> Date: Thu, 18 Feb 2010 11:21:36 -0800 Subject: EXT-5363 webkit does not strip spaces off a typed-in URL Reviewed by CB --- indra/newview/llviewermedia.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index 642f672faf..395467dffb 100644 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -1318,6 +1318,9 @@ void LLViewerMediaImpl::loadURI() { if(mMediaSource) { + // trim whitespace from front and back of URL - fixes EXT-5363 + LLStringUtil::trim( mMediaURL ); + // *HACK: we don't know if the URI coming in is properly escaped // (the contract doesn't specify whether it is escaped or not. // but LLQtWebKit expects it to be, so we do our best to encode -- cgit v1.2.3