Full error codes I'm getting:
Notice: Use of undefined constant FILTER_SANITIZE_FULL_SPECIAL_CHARS - assumed 'FILTER_SANITIZE_FULL_SPECIAL_CHARS' in Prometheus::register() (line 77 of D:\Web_Public\Prometheus\sites\all\modules\prometheus\classes\prometheus.class.php).
Notice: Undefined index: DEFAULTS in Prometheus::register() (line 77 of D:\Web_Public\Prometheus\sites\all\modules\prometheus\classes\prometheus.class.php).
Notice: Undefined index: paths in Prometheus::register_class() (line 209 of D:\Web_Public\Prometheus\sites\all\modules\prometheus\classes\prometheus.class.php).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | prometheus-error_notices-1378364-3.patch | 2.11 KB | Akaoni |
| #1 | prometheus-undefined_const_notice-1378364-1.patch | 778 bytes | Akaoni |
Comments
Comment #1
Akaoni commentedPatch for 7.x-1.x:
Comment #2
Akaoni commentedCNR
Comment #2.0
Akaoni commentedAdded more notices.
Comment #3
Akaoni commentedNew patch for all notices:
Comment #4
slobo commentedWhat will happen on PHP <5.3.3 if someone uses FILTER_SANITIZE_FULL_SPECIAL_CHARS in their input sanitization? Would it be a graceful failure / would the user be notified that the module won't perform as expected?
Perhaps it is better not to include FILTER_SANITIZE_FULL_SPECIAL_CHARS as the available mapping option in that case, or have filter_full_special_chars revert to filter_special_chars, but that would need to be documented.
The other part of the patch looks good.
Comment #5
Akaoni commentedIt gracefully falls back to use the FILTER_SANITIZE_SPECIAL_CHARS filter:
http://www.php.net/manual/en/filter.filters.sanitize.php
We'd probably need to document this.
Comment #6
Akaoni commentedCommited to "7.x-1.x-refactor".
Comment #7
Akaoni commentedAdd refactor tag.
Comment #7.0
Akaoni commentedUpdated code block formatting