mirror of
https://github.com/processwire/processwire.git
synced 2025-08-15 11:14:12 +02:00
Fix issue processwire/processwire-issues#1040
This commit is contained in:
@@ -284,6 +284,7 @@ _OUT;
|
|||||||
*/
|
*/
|
||||||
protected function getAjaxUrl() {
|
protected function getAjaxUrl() {
|
||||||
|
|
||||||
|
$pipe = '%7C'; // encoded pipe "|"
|
||||||
$selector = $this->findPagesSelector;
|
$selector = $this->findPagesSelector;
|
||||||
|
|
||||||
if($this->parent_id) {
|
if($this->parent_id) {
|
||||||
@@ -297,7 +298,7 @@ _OUT;
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(count($this->template_ids)) {
|
if(count($this->template_ids)) {
|
||||||
$selector .= ",templates_id=" . implode('|', $this->template_ids);
|
$selector .= ",templates_id=" . implode($pipe, $this->template_ids);
|
||||||
} else if($this->template_id) {
|
} else if($this->template_id) {
|
||||||
$selector .= ",templates_id={$this->template_id}";
|
$selector .= ",templates_id={$this->template_id}";
|
||||||
}
|
}
|
||||||
@@ -333,6 +334,9 @@ _OUT;
|
|||||||
}
|
}
|
||||||
$selector .= "&get=" . $this->labelFieldName;
|
$selector .= "&get=" . $this->labelFieldName;
|
||||||
|
|
||||||
|
// replace any pipes with encoded version
|
||||||
|
if(strpos($selector, '|') !== false) $selector = str_replace('|', $pipe, $selector);
|
||||||
|
|
||||||
return $this->config->urls->admin . "page/search/for?" . $selector;
|
return $this->config->urls->admin . "page/search/for?" . $selector;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user