diff options
author | redmatrix <git@macgirvin.com> | 2016-06-15 20:51:55 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-06-15 20:51:55 -0700 |
commit | bc5f73e6c32cebd2add7a36173404208e7140af3 (patch) | |
tree | 2271ec447705babfcca9023cc7fddcfefcd6abec /include/bbcode.php | |
parent | 1dc35db1fe68514b55ddcc70e60dd06b117f81b7 (diff) | |
download | volse-hubzilla-bc5f73e6c32cebd2add7a36173404208e7140af3.tar.gz volse-hubzilla-bc5f73e6c32cebd2add7a36173404208e7140af3.tar.bz2 volse-hubzilla-bc5f73e6c32cebd2add7a36173404208e7140af3.zip |
provide a default for undefined languages
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index 82fa33527..b720355af 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -495,6 +495,7 @@ function bb_highlight($match) { if(in_array(strtolower($match[1]),['php','css','mysql','sql','abap','diff','html','perl','ruby', 'vbscript','avrc','dtd','java','xml','cpp','python','javascript','js','sh'])) return text_highlight($match[2],strtolower($match[1])); + return $match[0]; } |