Go Back   The Giraffe Boards > Main > Getting Started
Register Blogs GB FAQ Forum Rules Community Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 6th June 2012, 09:52 AM
McNutty's Avatar
McNutty McNutty is offline
CONTAINS QUININE
 
Join Date: Mar 2009
Posts: 5,264
Avatar bug

I've noticed that Chrome doesn't like this image, which is mothedrine's avatar. It claims there are multiple Content-Disposition headers being returned and refuses to display it for security reasons. I did a network trace on a fetch of this file and that error message isn't quite accurate: there is only one Content-Disposition header, but it's malformed due to having a space in an unquoted "filename" section (due to the fact that the uploaded file has a space in its name). Here's the header:
Code:
Content-disposition: inline; filename=blue moth, 100x80.jpg
It looks like vBulletin is supposed to be writing the header like this:

Code:
Content-disposition: inline; filename="blue moth, 100x80.jpg"
I wonder if vBulletin has a recommended fix for this problem. It could be a security issue if it means they're writing unsanitized filenames to HTTP response headers. I can think of a few ways to hand fix this instance if you wanted: 1) mothedrine could upload an av using a file without the spaces in the name, 2) image.php could be hacked to either not include the filename in the C-D header or to quote it properly, 3) the filename could have the spaces manually removed in the database.
Reply With Quote
  #2  
Old 6th June 2012, 10:08 AM
mothedrine's Avatar
mothedrine mothedrine is offline
For England!
 
Join Date: May 2012
Location: Metuchen, NJ
Posts: 4,121
OK - i'll try to find the original file, rename and upload again.
Reply With Quote
  #3  
Old 6th June 2012, 10:13 AM
mothedrine's Avatar
mothedrine mothedrine is offline
For England!
 
Join Date: May 2012
Location: Metuchen, NJ
Posts: 4,121
OK - try it now.
Reply With Quote
  #4  
Old 6th June 2012, 10:17 AM
McNutty's Avatar
McNutty McNutty is offline
CONTAINS QUININE
 
Join Date: Mar 2009
Posts: 5,264
Yup, looks better. Thanks!
Reply With Quote
  #5  
Old 6th June 2012, 01:19 PM
Dragonlady's Avatar
Dragonlady Dragonlady is offline
Only actual board member
 
Join Date: Oct 2009
Location: SeaTac
Posts: 16,011
Blog Entries: 61
I thought he was doing it on purpose...
Reply With Quote
  #6  
Old 6th June 2012, 01:32 PM
Annoying Retard Nonny's Avatar
Annoying Retard Nonny Annoying Retard Nonny is offline
I'm from Uranus!!
 
Join Date: Jan 2011
Location: Uranus
Posts: 482
Quote:
Originally Posted by Dragonlady View Post
I thought he was doing it on purpose...
Me too!



~Not Guin
Reply With Quote
  #7  
Old 6th June 2012, 01:46 PM
mothedrine's Avatar
mothedrine mothedrine is offline
For England!
 
Join Date: May 2012
Location: Metuchen, NJ
Posts: 4,121
I wish I'd known - I would have fixed it earlier.

But honestly - not being able to handle file names with embedded spaces? Yo VBulletin - the 70's called and said they want their file system back.
Reply With Quote
  #8  
Old 6th June 2012, 08:19 PM
Guinastasia's Avatar
Guinastasia Guinastasia is offline
BOO!!!
 
Join Date: Mar 2009
Location: Pittsburgh, PA
Posts: 10,063
Quote:
Originally Posted by Annoying Retard Nonny View Post
Quote:
Originally Posted by Dragonlady View Post
I thought he was doing it on purpose...
Me too!



~Not Guin

Me three!


Guin


No, seriously, I thought it was a picture of a broken picture. Sort of "ironic".
Reply With Quote
  #9  
Old 6th June 2012, 09:05 PM
Sleeps With Butterflies Sleeps With Butterflies is offline
vאני אוהבת זומבים
 
Join Date: Mar 2009
Location: USA
Posts: 3,733
Blog Entries: 1
McNutty you are such an effing nerd.
Reply With Quote
  #10  
Old 7th June 2012, 07:14 AM
DogMom's Avatar
DogMom DogMom is offline
BitchEmpressofTheUNIVERSE
 
Join Date: Mar 2009
Location: Where the Cows Grow, Indiana
Posts: 5,883
Quote:
Originally Posted by Sleeps With Butterflies View Post
McNutty you are such an effing nerd.
And that is why we love him.
Reply With Quote
Reply

Giraffiti
h8 that bignosed bitch


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:10 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
User Alert System provided by Advanced User Tagging v3.0.7 (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Management has discontinued messages until further notice.