Created
October 10, 2014 13:33
-
-
Save werty1st/8d3227b79f3bac26fb85 to your computer and use it in GitHub Desktop.
filter url slash
reverse string replace for slash and apos to find items which include such char.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File: | |
contao3/system/modules/metamodels/MetaModels/ItemList.php | |
public function setFilterParameters($arrPresets, $arrValues) | |
{ | |
... | |
foreach ($arrProcessed as $key => $value) { | |
$value = str_replace(array('-slash-', '-apos-'), array('/', '\''), $value); | |
$arrProcessed[$key] = $value; | |
} | |
$this->arrParam = $arrProcessed; | |
return $this; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment