From 6dd02a0fd44288c3d946713696a379f5eb5ed726 Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Sun, 28 Feb 2010 11:33:20 -0500 Subject: Commit PROD changes --- static/js/pichat.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'static/js') diff --git a/static/js/pichat.js b/static/js/pichat.js index d9f0016..985715d 100755 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -19,10 +19,9 @@ var LastMsgContainsImage = false function linkReplace(url){ var PicRegex = /\.(jpg|jpeg|png|gif|bmp)$/i; var urlWithoutParams = url.replace(/\?.*$/i, ""); - linkUrl = url.indexOf('http://') == 0 ? url : 'http://' + url; - if (PicRegex.test(url)){ + if (PicRegex.test(urlWithoutParams)){ LastMsgContainsImage = true return "" } else { -- cgit v1.2.3-70-g09d2