Jump to content

(RIESENIE) Problem s vyhladavanim - chyba preg_replace


Recommended Posts

Riesenie problemu s vyhladavanim:

 

- otvorte subor: classes/Search.php

 

- najdite definiciu PREG_CLASS_SEARCH_EXCLUDE

 

- posledne jej riadky vyzeraju nasledovne:

 

'\x{a806}\x{a80b}\x{a823}-\x{a82b}\x{d800}-\x{f8ff}\x{fb1e}\x{fb29}\x{fd3e}'.

'\x{fd3f}\x{fdfc}-\x{fe6b}\x{feff}-\x{ff0f}\x{ff1a}-\x{ff20}\x{ff3b}-\x{ff40}'.

'\x{ff5b}-\x{ff65}\x{ff70}\x{ff9e}\x{ff9f}\x{ffe0}-\x{fffd}');

 

- nahradit ich:

 

'\x{a80b}\x{a823}-\x{a82b}\x{f8ff}\x{fb1e}\x{fb29}\x{fd3e}\x{fd3f}\x{fdfc}-' .

'\x{fe6b}\x{feff}-\x{ff0f}\x{ff1a}-\x{ff20}\x{ff3b}-\x{ff40}\x{ff5b}-\x{ff65}' .

'\x{ff70}\x{ff9e}\x{ff9f}\x{ffe0}-\x{fffd}');

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

tiez dakujem,

hladal som to na anglickom fore a nic, podozrieval som

nastavenia php na hostingu, tfuj, nemam rad regexpy.

migX

 

nakoniec som to Q&D riesil zakomentovanim

class SearchCore

{ public static function sanitize($string, $id_lang, $indexation = false)

{ ...

// tady $string mizi, po zakomentaci search prochazi

//$string = preg_replace('/['.PREG_CLASS_SEARCH_EXCLUDE.']+/u', ' ', $string);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...