Skip to content
Code-Schnipsel Gruppen Projekte
Commit c34c0e9c erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

fix: CSS classes with : and / should work now.

#111
Übergeordneter 05a9c11d
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -253,7 +253,6 @@ public function create()
foreach ($classes as $class) {
$class = trim($class);
$class = preg_replace('/[^a-zA-Z0-9\-]/', '', $class);
$_classes[] = $class;
}
......@@ -432,7 +431,7 @@ public function getCustomFields()
}
/**
* Add an exxtra CSS Class to the control
* Add an extra CSS Class to the control
*
* @param string $cssClass - Name of the CSS Class
*
......@@ -448,7 +447,7 @@ public function addCSSClass($cssClass)
return;
}
$classes = preg_replace('/[^_a-zA-Z0-9-]/', ' ', $cssClass);
$classes = QUI\ControlUtils::clearClassName($cssClass);
$classes = explode(' ', $classes);
$keys = array_flip($this->cssClasses);
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren