Ticket #2890: sfPropelActAsTaggableToolkit.class.php.patch
| File sfPropelActAsTaggableToolkit.class.php.patch, 0.7 kB (added by forkmantis, 1 year ago) |
|---|
-
lib/sfPropelActAsTaggableToolkit.class.php
old new 32 32 */ 33 33 public static function explodeTagString($tag) 34 34 { 35 if (is_string($tag) && false !== strpos($tag, ','))35 if (is_string($tag) && (false !== strpos($tag, ',') || preg_match('/\r/', $tag))) 36 36 { 37 $tag = preg_replace('/\r\n|\r/', ',', $tag); 37 38 $tag = explode(',', $tag); 38 39 $tag = array_map('trim', $tag); 39 40 $tag = array_map('rtrim', $tag); 41 $tag = array_filter($tag); 40 42 } 41 43 42 44 return $tag;