Changeset 77 in lab


Ignore:
Timestamp:
Oct 27, 2010 3:15:15 PM (14 years ago)
Author:
mitty
Message:
  • FIX warning error on no language is chosen ('clear' button pressed)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genshi/index.php

    r76 r77  
    3131    } 
    3232    if (!strlen(trim($_POST['source']))) { 
     33        if(! isset($_POST['language'])) { $_POST['language'] = 'php'; } 
    3334        $_POST['language'] = preg_replace('#[^a-zA-Z0-9\-_]#', '', $_POST['language']); 
    3435        $_POST['source'] = implode('', @file($path . 'geshi/' . $_POST['language'] . '.php')); 
Note: See TracChangeset for help on using the changeset viewer.