private function getUglyURL($url, $html)
{
$found = false;
foreach ($this->config['ajax_triggers'] as $string) {
if (stripos($html, $string)) {
$found = true;
break;
}
}
if (!$found) {
return false;
}
$this->logger->log('debug', 'Added escaped fragment to url');
$query = array('_escaped_fragment_' => '');
// add fragment to url
$url .= parse_url($url, PHP_URL_QUERY) ? '&' : '?';
// needed for some sites
$url .= str_replace('%2F', '/', http_build_query($query));
return $url;
}