| @@ 115-129 (lines=15) @@ | ||
| 112 | $value[] = $reg[0]; |
|
| 113 | // Removes = sign |
|
| 114 | $sword = trim(preg_replace('/^' . $specs . '/', '', $sword)); |
|
| 115 | } elseif (preg_match('/[\\+\\-]/', $sword)) { |
|
| 116 | // Check if $sword contains + or - |
|
| 117 | // + and - shall only be interpreted as $specchars when there's whitespace before it |
|
| 118 | // otherwise it's included in the searchword (e.g. "know-how") |
|
| 119 | // explode $sword to single words |
|
| 120 | $a_sword = explode(' ', $sword); |
|
| 121 | // get first word |
|
| 122 | $word = array_shift($a_sword); |
|
| 123 | // Delete $delchars at end of string |
|
| 124 | $word = rtrim($word, $delchars); |
|
| 125 | // add searchword to values |
|
| 126 | $value[] = $word; |
|
| 127 | // re-build $sword |
|
| 128 | $sword = implode(' ', $a_sword); |
|
| 129 | } else { |
|
| 130 | // There are no double-quotes around the value. Looking for next (space) or special char. |
|
| 131 | preg_match('/^[^ ' . preg_quote($specchars, '/') . ']*/', $sword, $reg); |
|
| 132 | // Delete $delchars at end of string |
|
| @@ 227-234 (lines=8) @@ | ||
| 224 | // check if person may only see a "virtual" page-root |
|
| 225 | $mountPoints = array_map('intval', $GLOBALS['BE_USER']->returnWebmounts()); |
|
| 226 | $mountPoints = array_unique($mountPoints); |
|
| 227 | if (!in_array(0, $mountPoints)) { |
|
| 228 | $tempPageIds = []; |
|
| 229 | foreach ($mountPoints as $mountPoint) { |
|
| 230 | $tempPageIds[] = $this->getTreeUids($mountPoint, $wsid, $recursionLevel); |
|
| 231 | } |
|
| 232 | $pageList = implode(',', $tempPageIds); |
|
| 233 | $pageList = implode(',', array_unique(explode(',', $pageList))); |
|
| 234 | } |
|
| 235 | } |
|
| 236 | // Traversing all tables supporting versioning: |
|
| 237 | foreach ($GLOBALS['TCA'] as $table => $cfg) { |
|