replace % in pattern with .* and surround with ^$ to get a real regex pattern
Merge pull request #9229 from owncloud/fix_search_on_oracle_stable5

replace % in pattern with .* and surround with ^$ to get a real regex pattern