Skip to content

Instantly share code, notes, and snippets.

@werty1st
Created October 10, 2014 13:33
Show Gist options
  • Save werty1st/8d3227b79f3bac26fb85 to your computer and use it in GitHub Desktop.
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.
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