Set php limit to database field length
authorFabii547 <fabiangossner@gmail.com>
Sun, 6 Nov 2016 11:01:21 +0000 (12:01 +0100)
committerFabii547 <fabiangossner@gmail.com>
Sun, 6 Nov 2016 11:01:21 +0000 (12:01 +0100)
wcfsetup/install/files/lib/system/search/SearchKeywordManager.class.php

index 6b19a32b9bd3b6adb51c2ac9798824de5f58ddf6..127fe0ef807b2be252ba59846195a69e55ec1423 100644 (file)
@@ -35,7 +35,7 @@ class SearchKeywordManager extends SingletonFactory {
                }
                else {
                        $action = new SearchKeywordAction([], 'create', ['data' => [
-                               'keyword' => mb_substr($keyword, 0, 255),
+                               'keyword' => mb_substr($keyword, 0, 191),
                                'searches' => 1,
                                'lastSearchTime' => TIME_NOW
                        ]]);