filterexceptions.pl 10.9 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code are the Bugzilla tests.
#
# The Initial Developer of the Original Code is Jacob Steenhagen.
# Portions created by Jacob Steenhagen are
# Copyright (C) 2001 Jacob Steenhagen. All
# Rights Reserved.
#
# Contributor(s): Gervase Markham <gerv@gerv.net>

# Important! The following classes of directives are excluded in the test,
# and so do not need to be added here. Doing so will cause warnings.
# See 008filter.t for more details.
#
# Comments                        - [%#...
# Directives                      - [% IF|ELSE|UNLESS|FOREACH...
# Assignments                     - [% foo = ...
# Simple literals                 - [% " selected" ...
# Values always used for numbers  - [% (i|j|k|n|count) %]
# Params                          - [% Param(...
32
# Safe functions                  - [% (time2str)...
33 34
# Safe vmethods                   - [% foo.size %] [% foo.length %]
#                                   [% foo.push() %]
35 36
# TT loop variables               - [% loop.count %]
# Already-filtered stuff          - [% wibble FILTER html %]
37
#   where the filter is one of html|csv|js|url_quote|quoteUrls|time|uri|xml|none
38 39 40

%::safe = (

41 42 43 44 45 46 47 48 49 50 51 52 53
'whine/schedule.html.tmpl' => [
  'event.key',
  'query.id',
  'query.sort',
  'schedule.id',
  'option.0',
  'option.1',
],

'whine/mail.html.tmpl' => [
  'bug.bug_id',
],

54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
'flag/list.html.tmpl' => [
  'flag.id', 
  'flag.status', 
  'type.id', 
],

'search/boolean-charts.html.tmpl' => [
  '"field${chartnum}-${rownum}-${colnum}"', 
  '"value${chartnum}-${rownum}-${colnum}"', 
  '"type${chartnum}-${rownum}-${colnum}"', 
  'field.name', 
  'field.description', 
  'type.name', 
  'type.description', 
  '"${chartnum}-${rownum}-${newor}"', 
  '"${chartnum}-${newand}-0"', 
  'newchart',
  'jsmagic',
],

'search/form.html.tmpl' => [
  'qv.value',
  'qv.name',
  'qv.description',
  'field.name',
  'field.description',
  'field.accesskey',
  'sel.name',
],

84
'search/search-specific.html.tmpl' => [
85
  'status.name',
86 87
],

88 89 90 91
'search/tabs.html.tmpl' => [
  'content',
],

92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
'request/queue.html.tmpl' => [
  'column_headers.$group_field', 
  'column_headers.$column', 
  'request.status', 
  'request.bug_id', 
  'request.attach_id', 
],

'reports/components.html.tmpl' => [
  'numcols',
],

'reports/duplicates-table.html.tmpl' => [
  'column.name', 
  'column.description',
  'bug.count', 
  'bug.delta', 
],

'reports/duplicates.html.tmpl' => [
  'bug_ids_string', 
  'maxrows',
  'changedsince',
  'reverse',
],

'reports/keywords.html.tmpl' => [
119
  'keyword.bug_count', 
120 121 122 123
],

'reports/report-table.csv.tmpl' => [
  'data.$tbl.$col.$row',
124
  'colsepchar',
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
],

'reports/report-table.html.tmpl' => [
  '"&amp;$tbl_vals" IF tbl_vals', 
  '"&amp;$col_vals" IF col_vals', 
  '"&amp;$row_vals" IF row_vals', 
  'classes.$row_idx.$col_idx', 
  'urlbase', 
  'data.$tbl.$col.$row', 
  'row_total',
  'col_totals.$col',
  'grand_total', 
],

'reports/report.html.tmpl' => [
  'width', 
  'height', 
  'imageurl', 
  'formaturl', 
  'other_format.name', 
  'sizeurl', 
  'switchbase',
  'format',
  'cumulate',
],

'reports/duplicates.rdf.tmpl' => [
  'template_version', 
  'bug.id', 
  'bug.count', 
  'bug.delta', 
],

158 159 160 161 162 163 164 165 166 167 168 169 170
'reports/chart.html.tmpl' => [
  'width', 
  'height', 
  'imageurl', 
  'sizeurl', 
  'height + 100', 
  'height - 100', 
  'width + 100', 
  'width - 100', 
],

'reports/series-common.html.tmpl' => [
  'sel.name', 
171
  '"onchange=\"$sel.onchange\"" IF sel.onchange', 
172 173 174 175
],

'reports/chart.csv.tmpl' => [
  'data.$j.$i', 
176
  'colsepchar',
177 178 179 180 181 182 183 184 185 186 187
],

'reports/create-chart.html.tmpl' => [
  'series.series_id', 
  'newidx',
],

'reports/edit-series.html.tmpl' => [
  'default.series_id', 
],

188 189 190 191 192 193
'list/change-columns.html.tmpl' => [
  'column', 
],

'list/edit-multiple.html.tmpl' => [
  'group.id', 
194
  'menuname',
195 196 197 198 199 200 201 202 203 204 205
],

'list/list.rdf.tmpl' => [
  'template_version', 
  'bug.bug_id', 
  'column', 
],

'list/table.html.tmpl' => [
  'tableheader',
  'bug.bug_id', 
206
  'abbrev.$id.title || field_descs.$id || column.title',
207 208 209 210
],

'list/list.csv.tmpl' => [
  'bug.bug_id', 
211
  'colsepchar',
212 213 214 215 216 217 218 219 220 221
],

'list/list.js.tmpl' => [
  'bug.bug_id', 
],

'global/choose-product.html.tmpl' => [
  'target',
],

222 223 224
# You are not permitted to add any values here. Everything in this file should 
# be filtered unless there's an extremely good reason why not, in which case,
# use the "none" dummy filter.
225 226
'global/code-error.html.tmpl' => [
],
227
 
228 229 230
'global/header.html.tmpl' => [
  'javascript', 
  'style', 
231
  'onload',
232
  'title',
233 234 235
  '" &ndash; $header" IF header',
  'subheader',
  'header_addl_info', 
236 237 238 239 240
  'message', 
],

'global/messages.html.tmpl' => [
  'message_tag', 
241
  'series.frequency * 2',
242 243
],

244 245 246 247
'global/per-bug-queries.html.tmpl' => [
  '" value=\"$bugids\"" IF bugids',
],

248 249 250 251 252
'global/select-menu.html.tmpl' => [
  'options', 
  'size', 
],

253 254 255 256
'global/tabs.html.tmpl' => [
  'content', 
],

257 258 259
# You are not permitted to add any values here. Everything in this file should 
# be filtered unless there's an extremely good reason why not, in which case,
# use the "none" dummy filter.
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277
'global/user-error.html.tmpl' => [
],

'global/confirm-user-match.html.tmpl' => [
  'script',
  'fields.${field_name}.flag_type.name',
],

'global/site-navigation.html.tmpl' => [
  'bug_list.first', 
  'bug_list.$prev_bug', 
  'bug_list.$next_bug', 
  'bug_list.last', 
  'bug.bug_id', 
  'bug.votes', 
],

'bug/comments.html.tmpl' => [
278
  'comment.id',
279
  'bug.bug_id',
280 281 282 283 284 285 286 287 288 289 290 291 292
],

'bug/dependency-graph.html.tmpl' => [
  'image_map', # We need to continue to make sure this is safe in the CGI
  'image_url', 
  'map_url', 
  'bug_id', 
],

'bug/dependency-tree.html.tmpl' => [
  'bugid', 
  'maxdepth', 
  'hide_resolved', 
293
  'ids.join(",")',
294 295
  'maxdepth + 1', 
  'maxdepth > 0 && maxdepth <= realdepth ? maxdepth : ""',
296
  'maxdepth == 1 ? 1
297 298 299 300
                       : ( maxdepth ? maxdepth - 1 : realdepth - 1 )',
],

'bug/edit.html.tmpl' => [
301
  'bug.deadline',
302 303 304 305 306 307 308 309 310
  'bug.remaining_time', 
  'bug.delta_ts', 
  'bug.bug_id', 
  'bug.votes', 
  'group.bit', 
  'dep.title', 
  'dep.fieldname', 
  'bug.${dep.fieldname}.join(\', \')', 
  'selname',
311
  '" accesskey=\"$accesskey\"" IF accesskey',
312
  'inputname',
313
  '" colspan=\"$colspan\"" IF colspan',
314
  '" size=\"$size\"" IF size',
315
  '" maxlength=\"$maxlength\"" IF maxlength',
316
  '" onfocus=\"$onfocus\"" IF onfocus',
317
  'flag.status',
318
  '" spellcheck=\"$spellcheck\"" IF spellcheck',
319 320 321 322 323 324 325 326 327 328 329
],

'bug/navigate.html.tmpl' => [
  'bug_list.first', 
  'bug_list.last', 
  'bug_list.$prev_bug', 
  'bug_list.$next_bug', 
],

'bug/show-multiple.html.tmpl' => [
  'bug.bug_id', 
330 331
  'attachment.id', 
  'flag.status',
332 333
],

334 335 336 337
'bug/show.html.tmpl' => [
  'bug.bug_id',
],

338
'bug/show.xml.tmpl' => [
339
  'constants.BUGZILLA_VERSION', 
340
  'a.id', 
341 342 343
  'field', 
],

344 345 346 347 348 349 350 351
'bug/summarize-time.html.tmpl' => [
  'global.grand_total FILTER format("%.2f")',
  'subtotal FILTER format("%.2f")',
  'work_time FILTER format("%.2f")',
  'global.total FILTER format("%.2f")',
],


352 353 354 355 356 357 358 359
'bug/time.html.tmpl' => [
  'time_unit FILTER format(\'%.1f\')', 
  'time_unit FILTER format(\'%.2f\')', 
  '(act / (act + rem)) * 100 
       FILTER format("%d")', 
],

'bug/votes/list-for-bug.html.tmpl' => [
360
  'voter.vote_count', 
361 362 363 364 365 366 367 368 369 370 371 372 373
  'total', 
],

'bug/votes/list-for-user.html.tmpl' => [
  'product.maxperbug', 
  'bug.id', 
  'bug.count', 
  'product.total', 
  'product.maxvotes', 
],

'bug/process/results.html.tmpl' => [
  'title.$type', 
374 375
  '"$terms.Bug $id" FILTER bug_link(id)',
  '"$terms.bug $id" FILTER bug_link(id)',
376 377 378 379 380 381
],

'bug/create/create.html.tmpl' => [
  'g.bit',
  'sel.name',
  'sel.description',
382
  'cloned_bug_id',
383 384 385 386 387
],

'bug/create/create-guided.html.tmpl' => [
  'matches.0', 
  'tablecolour',
388 389
  'sel',
  'productstring', 
390 391 392 393 394 395 396 397
],

'bug/activity/table.html.tmpl' => [
  'change.attachid', 
  'change.field', 
],

'attachment/create.html.tmpl' => [
398
  'bug.bug_id',
399 400 401 402
  'attachment.id', 
],

'attachment/created.html.tmpl' => [
403 404
  'attachment.id',
  'attachment.bug_id',
405 406 407
],

'attachment/edit.html.tmpl' => [
408 409
  'attachment.id', 
  'attachment.bug_id', 
410 411 412 413
  'a', 
],

'attachment/list.html.tmpl' => [
414
  'attachment.id', 
415 416
  'flag.status',
  'bugid',
417
  'obsolete_attachments',
418 419
],

420 421 422 423
'attachment/midair.html.tmpl' => [
  'attachment.id',
],

424
'attachment/show-multiple.html.tmpl' => [
425
  'a.id',
426
  'flag.status'
427 428 429
],

'attachment/updated.html.tmpl' => [
430
  'attachment.id',
431 432
],

433 434
'attachment/diff-header.html.tmpl' => [
  'attachid',
435
  'id',
436 437 438 439 440 441 442 443 444 445 446 447 448 449
  'bugid',
  'oldid',
  'newid',
  'style',
  'javascript',
  'patch.id',
],

'attachment/diff-file.html.tmpl' => [
  'lxr_prefix',
  'file.minus_lines',
  'file.plus_lines',
  'bonsai_prefix',
  'section.old_start',
450 451 452 453 454
  'section_num',
  'current_line_old',
  'current_line_new',
  'curr_old',
  'curr_new'
455 456
],

457 458 459 460
'admin/admin.html.tmpl' => [
  'class'
],

461
'admin/table.html.tmpl' => [
462
  'link_uri'
463 464
],

465 466 467 468
'admin/params/common.html.tmpl' => [
  'sortlist_separator', 
],

469 470 471 472 473 474 475 476 477 478 479 480 481
'admin/products/groupcontrol/confirm-edit.html.tmpl' => [
  'group.count', 
],

'admin/products/groupcontrol/edit.html.tmpl' => [
  'group.bugcount', 
  'group.id', 
  'const.CONTROLMAPNA', 
  'const.CONTROLMAPSHOWN', 
  'const.CONTROLMAPDEFAULT', 
  'const.CONTROLMAPMANDATORY', 
],

482 483 484 485
'admin/products/list.html.tmpl' => [
  'classification_url_part', 
],

486 487 488 489
'admin/products/confirm-delete.html.tmpl' => [
  'classification_url_part', 
],

490 491 492 493 494
'admin/products/footer.html.tmpl' => [
  'classification_url_part', 
  'classification_text', 
],

495
'admin/flag-type/confirm-delete.html.tmpl' => [
496
  'flag_type.flag_count',
497 498 499 500 501 502 503 504
  'flag_type.id', 
],

'admin/flag-type/edit.html.tmpl' => [
  'action', 
  'type.id', 
  'type.target_type', 
  'type.sortkey || 1',
505 506
  'typeLabelLowerPlural',
  'typeLabelLowerSingular',
507
  'selname',
508 509 510 511 512 513
],

'admin/flag-type/list.html.tmpl' => [
  'type.id', 
],

514 515

'admin/components/confirm-delete.html.tmpl' => [
516
  'comp.bug_count'
517 518
],

519 520 521 522
'admin/groups/delete.html.tmpl' => [
  'shared_queries'
],

523
'admin/users/confirm-delete.html.tmpl' => [
524 525
  'reporter',
  'assignee_or_qa',
526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543
  'cc',
  'flags.requestee',
  'flags.setter',
  'longdescs',
  'votes',
  'series',
  'watch.watched',
  'watch.watcher',
  'whine_events',
  'whine_schedules',
  'otheruser.id'
],

'admin/users/edit.html.tmpl' => [
  'otheruser.id',
  'group.id',
],

544
'admin/components/edit.html.tmpl' => [
545
  'comp.bug_count'
546 547
],

548 549 550 551 552 553 554 555 556 557
'admin/workflow/edit.html.tmpl' => [
  'status.id',
  'new_status.id',
],

'admin/workflow/comment.html.tmpl' => [
  'status.id',
  'new_status.id',
],

558 559 560 561 562
'account/login.html.tmpl' => [
  'target', 
],

'account/prefs/email.html.tmpl' => [
563 564 565
  'relationship.id',
  'event.id',
  'prefname',
566 567 568
],

'account/prefs/prefs.html.tmpl' => [
569 570
  'current_tab.label',
  'current_tab.name',
571 572
],

573 574 575 576
'account/prefs/saved-searches.html.tmpl' => [
  'group.id',
],

577
);