Skip to content
Permalink
Browse files

Fixing tag-based galleries when PHP source files are not encoded in U…

…TF-8
  • Loading branch information
ehough committed Aug 8, 2012
1 parent ce3957b commit d1f1c98c251914f4a8facfc8c614e49d0156b34f
Showing with 1 addition and 1 deletion.
  1. +1 −1 sys/classes/org/tubepress/impl/shortcode/SimpleShortcodeParser.class.php
@@ -79,7 +79,7 @@ private function _wrappedParse($content)
/* Anything matched? */
if (isset($matches[1]) && $matches[1] != '') {

$text = preg_replace('/[\x{00a0}\x{200b}]+/u', ' ', $matches[1]);
$text = preg_replace('/[\x{00a0}\x{200b}]+/u', ' ', utf8_encode($matches[1]));
$text = self::_convertQuotes($text);
$pattern = '/(\w+)\s*=\s*"([^"]*)"(?:\s*,)?(?:\s|$)|(\w+)\s*=\s*\'([^\']*)\'(?:\s*,)?(?:\s|$)|(\w+)\s*=\s*([^\s\'"]+)(?:\s*,)?(?:\s|$)/';

0 comments on commit d1f1c98

Please sign in to comment.
You can’t perform that action at this time.