From a3d2a447a9a067d087931d2075a5b3062809cb84 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Tue, 8 May 2018 05:43:24 -0400 Subject: [PATCH] Add fix for issue processwire/processwire-issues#584 allow quotes in InputfieldPageAutocomplete selectors --- .../InputfieldPageAutocomplete.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/modules/Inputfield/InputfieldPageAutocomplete/InputfieldPageAutocomplete.module b/wire/modules/Inputfield/InputfieldPageAutocomplete/InputfieldPageAutocomplete.module index 287a1b8f..155b8d54 100644 --- a/wire/modules/Inputfield/InputfieldPageAutocomplete/InputfieldPageAutocomplete.module +++ b/wire/modules/Inputfield/InputfieldPageAutocomplete/InputfieldPageAutocomplete.module @@ -195,7 +195,7 @@ class InputfieldPageAutocomplete extends Inputfield implements InputfieldHasArra $attrs = "data-max='$max' " . - "data-url='$url' " . + "data-url='" . $this->wire('sanitizer')->entities($url) . "' " . "data-label='" . $this->wire('sanitizer')->entities($labelField) . "' " . "data-search='$searchField' " . "data-operator='$operator'";