Changeset 18050d8 in lab.git for genshi/index.php


Ignore:
Timestamp:
Oct 27, 2010 3:15:15 PM (14 years ago)
Author:
mitty <mitty@…>
Branches:
master, trunk
Children:
38785a4
Parents:
3f4661f
Message:
  • FIX warning error on no language is chosen ('clear' button pressed)

git-svn-id: https://lab.mitty.jp/svn/lab/trunk@77 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genshi/index.php

    r3f4661f r18050d8  
    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.