lib/icarus/mod/tools/toolinfo.rb in Icarus-Mod-Tools-2.1.1 vs lib/icarus/mod/tools/toolinfo.rb in Icarus-Mod-Tools-2.1.2

- old
+ new

@@ -22,9 +22,18 @@ private def filetype_pattern /(zip|exe)/i end + + def validate + return true if @validated + + validate_filetype(fileType) + @errors << "Invalid fileURL: #{@data[:fileURL] || "blank"}" unless validate_url(fileURL) + + super + end end end end end