#207 language detection for uppercase extention fails

closed-fixed
BenBE
5
2012-12-25
2012-04-03
murkymark
No

Version: 1.0.8.10
Method get_language_name_from_extension() should contain strtolower($extension), otherwise load_from_file("MYFILE.HTM") will fail.
A fallback to language "Text" (text.php) would be useful, if an extension was not found (error code should still be set), to prevent PHP error/warning: Notice: Uninitialized string offset: 0 in ...geshi.php on line 4323
Currently the common extension "txt" is missing in the array of get_language_name_from_extension() .

Discussion

  • BenBE
    BenBE
    2012-08-15

    • assigned_to: oracleshinoda --> benbe
    • milestone: --> Next_Release_(Stable)
    • status: open --> open-fixed
     
  • BenBE
    BenBE
    2012-08-15

    • status: open-fixed --> pending-fixed
     
  • BenBE
    BenBE
    2012-08-18

    • status: pending-fixed --> closed-fixed