Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Don't try to intern the empty string.

  • Loading branch information...
commit 5c613f197e95e996b86b5fd4adab6d6f80fbc9a1 1 parent 5611cbc
Conrad Irwin authored July 22, 2011
2  lib/rack/perftools_profiler/profile_data_action.rb
@@ -9,7 +9,7 @@ def check_printer_arg
9 9
     end
10 10
 
11 11
     def self.check_printer(printer, env=nil)
12  
-      if printer != nil && !ProfilerMiddleware::PRINTERS.member?(printer.to_sym)
  12
+      if printer != nil && printer != '' && !ProfilerMiddleware::PRINTERS.member?(printer.to_sym)
13 13
         message = "Invalid printer type: #{printer}. Valid printer values are #{ProfilerMiddleware::PRINTERS.join(", ")}" 
14 14
         raise ProfilerArgumentError, message
15 15
       end

0 notes on commit 5c613f1

Please sign in to comment.
Something went wrong with that request. Please try again.