Oddbean new post about | logout
 Here you go, from the php master

$clean_filename = preg_replace('/(\.\w+).*/', '$1', $filename); 
 Not using PHP to serve, too broken, slow and insecure ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚ 
โ–ฒ โ–ผ
 shots fired ๐Ÿ”ฅ๐Ÿ˜‚ 
 Factual bombs dropping! ๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚๐Ÿ”ฅ๐Ÿซณ๐Ÿป๐Ÿ’ฃ