@@ 877-888 (lines=12) @@ | ||
874 | * @param string $value String value |
|
875 | * @return string |
|
876 | */ |
|
877 | private function encodeRqlString($value) |
|
878 | { |
|
879 | return strtr( |
|
880 | rawurlencode($value), |
|
881 | [ |
|
882 | '-' => '%2D', |
|
883 | '_' => '%5F', |
|
884 | '.' => '%2E', |
|
885 | '~' => '%7E', |
|
886 | ] |
|
887 | ); |
|
888 | } |
|
889 | ||
890 | /** |
|
891 | * Trigger a 301 Status code |
@@ 342-353 (lines=12) @@ | ||
339 | * @param string $string String |
|
340 | * @return string |
|
341 | */ |
|
342 | private function encodeRqlString($string) |
|
343 | { |
|
344 | return strtr( |
|
345 | rawurlencode($string), |
|
346 | [ |
|
347 | '-' => '%2D', |
|
348 | '_' => '%5F', |
|
349 | '.' => '%2E', |
|
350 | '~' => '%7E', |
|
351 | ] |
|
352 | ); |
|
353 | } |
|
354 | } |
|
355 |
@@ 784-795 (lines=12) @@ | ||
781 | * @param string $value Value |
|
782 | * @return string |
|
783 | */ |
|
784 | private function encodeRqlString($value) |
|
785 | { |
|
786 | return strtr( |
|
787 | rawurlencode($value), |
|
788 | [ |
|
789 | '-' => '%2D', |
|
790 | '_' => '%5F', |
|
791 | '.' => '%2E', |
|
792 | '~' => '%7E', |
|
793 | ] |
|
794 | ); |
|
795 | } |
|
796 | ||
797 | /** |
|
798 | * verify that finding stuff with dot in it works |