Ryan Cramer
|
96b263fd2e
|
Add 'allowSpace' option to $sanitizer->selectorValue()
|
2020-10-02 11:57:27 -04:00 |
|
Ryan Cramer
|
0953fdb347
|
Update $sanitizer->trim() method to support a 3rd argument ($method) where you can specify what direction it should trim from: 'trim' (both), 'ltrim' (left), or 'rtrim' (right). Default is 'trim'.
|
2020-10-01 07:55:09 -04:00 |
|
Ryan Cramer
|
7c2fe8b8db
|
Update $sanitizer array methods to support a 'keySanitizer' option that enables one to also sanitize associative arrays when needed
|
2020-09-25 13:24:47 -04:00 |
|
Ryan Cramer
|
5ea913f79d
|
Refactor and improvements to $sanitizer->validateFile() method. Also added new options for 'getArray' and 'dryrun'.
|
2020-09-24 13:39:04 -04:00 |
|
Ryan Cramer
|
0409aa5dae
|
Update Sanitizer to isolate entitiesMarkdown() bracket tags logic to isolated method, plus add [br] tag to supported defaults
|
2020-08-20 09:57:07 -04:00 |
|
Ryan Cramer
|
af632b0a4d
|
Add $sanitizer->arrayVal() and $sanitizer->intArrayVal() for more strict/direct array sanitization defaults than the existing array() and intArray() sanitizers.
|
2020-08-11 07:17:53 -04:00 |
|
Ryan Cramer
|
5aa6b3939f
|
Update $sanitizer->testAll() method with the ability to test all sanitizer method return values and report on any that are misbehaving
|
2020-08-04 16:21:06 -04:00 |
|
Ryan Cramer
|
380583a92c
|
Various minor updates
|
2020-07-24 14:44:39 -04:00 |
|
Ryan Cramer
|
803e5c26d3
|
Add $sanitizer->word() method and upgrade $sanitizer->entitiesMarkdown() method to support escaped characters, making it possible to avoid collisions with basic markdown
|
2020-07-03 15:46:34 -04:00 |
|
Ryan Cramer
|
d69724123d
|
Update to $sanitizer->wordsArray() method, plus minor updates to $sanitizer->selectorValue() method
|
2020-06-26 09:41:57 -04:00 |
|
Ryan Cramer
|
7efb9e8a4b
|
Minor updates Selector, Selectors, Sanitizer
|
2020-06-19 12:59:39 -04:00 |
|
Ryan Cramer
|
1f293cc4f4
|
Add new $sanitizer->flatArray() and $sanitizer->wordsArray() methods, plus some improvements to existing array() method
|
2020-06-19 12:42:14 -04:00 |
|
Ryan Cramer
|
c41987d1db
|
Bump version to 3.0.159
|
2020-06-05 14:52:23 -04:00 |
|
Ryan Cramer
|
9d7d8f66af
|
Add new $sanitizer methods: line(), line(), trunc(), and improvements to intArray()
|
2020-05-22 13:32:58 -04:00 |
|
Ryan Cramer
|
0543548fdd
|
Rewrite the $sanitizer->selectorValue() method to be more thorough and support more options. The previous selectorValue() method can also still be used by specifying [ 'version' => 1 ] in the $options array argument. This update also fixes processwire/processwire-issues#1152
|
2020-05-15 11:06:36 -04:00 |
|
Ryan Cramer
|
b44669397a
|
Fix issue processwire/processwire-issues#1119
|
2020-04-15 16:37:09 -04:00 |
|
Ryan Cramer
|
48bb7c1734
|
Add a new $database->columnExists() method, plus a couple other unrelated minor adjustments
|
2020-04-10 12:40:15 -04:00 |
|
Ryan Cramer
|
3670031682
|
Fix issue processwire/processwire-issues#1091
|
2020-02-21 12:10:24 -05:00 |
|
Ryan Cramer
|
7aa83e3e5f
|
Update $sanitizer->testAll() to make hookable and add a couple more methods to it processwire/processwire-issues#85
|
2019-11-06 15:09:54 -05:00 |
|
Ryan Cramer
|
0e9cc868b7
|
Minor refactoring in ProcessPageEditImageSelect, plus update the executeVariations() method to also show webp extras when applicable.
|
2019-08-02 10:30:57 -04:00 |
|
Ryan Cramer
|
e1a664826f
|
Fix issue processwire/processwire-issues#871
|
2019-06-27 10:27:42 -04:00 |
|
Ryan Cramer
|
26435563d3
|
Add new $sanitizer->attrName() method and some other optimizations to Sanitizer class
|
2019-06-07 12:11:03 -04:00 |
|
Ryan Cramer
|
2b7f80d575
|
Several major improvements to WireTextTools::markupToText() method, plus related updates in Sanitizer and WireMail classes
|
2019-05-22 13:50:12 -04:00 |
|
Ryan Cramer
|
72324fdbb1
|
Fix issue processwire/processwire-issues#854
|
2019-04-16 10:03:42 -04:00 |
|
Ryan Cramer
|
c58d00863a
|
Add $sanitizer->httpUrl() method to accompany existing url() method
|
2019-04-05 15:01:14 -04:00 |
|
Ryan Cramer
|
7bd2e3fc7f
|
Add versions of many PHP string functions to WireTextTools to abstract away the mb_string test and update Sanitizer to use them where appropriate
|
2019-04-01 11:32:04 -04:00 |
|
Ryan Cramer
|
d9ab9c56d5
|
Add $sanitizer->checkbox() method
|
2019-03-29 15:30:32 -04:00 |
|
Ryan Cramer
|
02f05c6f67
|
Update to allow spaces in URL segments when allowed by config.pageNameWhitelist and config.pageNameCharset=UTF8 per processwire/processwire-issues#720
|
2019-03-21 09:19:01 -04:00 |
|
Ryan Cramer
|
a307d441d1
|
Add $sanitizer->minLength() method and another minor phpdoc typo fix per processwire/processwire-issues#797
|
2019-03-08 10:27:18 -05:00 |
|
Ryan Cramer
|
774c2152ee
|
Update $sanitizer->selectorValue() method to also accept array for its value argument. When array ['a','b','c'] is present, it converts to a sanitized a|b|c string.
|
2019-02-21 09:58:31 -05:00 |
|
Ryan Cramer
|
126c1392d4
|
Fix additional phpdoc typos per processwire/processwire-issues#797
|
2019-02-14 08:01:39 -05:00 |
|
Ryan Cramer
|
09a7d8e7ed
|
Add $sanitizer->fieldSubfield() method for sanitizing "field.subfield" strings.
|
2019-02-08 14:46:48 -05:00 |
|
Ryan Cramer
|
debb1cd511
|
Add $sanitizer->chars() method and update phpdoc at top of Sanitizer class for documentation purposes on API reference site.
|
2019-02-04 10:32:36 -05:00 |
|
Ryan Cramer
|
e879baf189
|
Add new $sanitizer methods: range(), min(), max(), bit(), maxLength(), maxBytes(), methodExists(), validate() and valid(). Also added support for executing multiple sanitizers in one call with the new sanitize() method.
|
2019-01-25 11:42:38 -05:00 |
|
Ryan Cramer
|
52e20c489d
|
Add new $sanitizer->trim() method that can trim of all known UTF-8 whitespace types (or given chars) from beginning and ending of string. This is something I discovered PHP's trim() fucntion does not do.
|
2019-01-11 09:30:51 -05:00 |
|
Ryan Cramer
|
67898cb36a
|
Add additional mbstring check to Sanitizer and add two new whitespace reduction methods (for internal use)
|
2018-12-20 11:15:34 -05:00 |
|
Ryan Cramer
|
b773c81ae9
|
Fix issue processwire/processwire-issues#766 auto-remove UTF-8 value of 
 line-seperator entity in $sanitizer->text() function
|
2018-12-14 13:07:26 -05:00 |
|
Ryan Cramer
|
e2478aa401
|
Add new string case conversion methods to Sanitizer: hyphenCase(), snakeCase(), camelCase(), and pascalCase()
|
2018-09-10 11:15:59 -04:00 |
|
Ryan Cramer
|
be1a203247
|
Fix issue processwire/processwire-issues#622 in $sanitizer->url() to workaround that PHP’s FILTER_VALIDATE_URL does not accept underscores in hostnames, despite their use being fairly common (even if not technically valid).
|
2018-06-27 10:24:59 -04:00 |
|
Ryan Cramer
|
1e912c4a4d
|
Fix issue processwire/processwire-issues#623 where WireHttp::download() method was not working with URLs having encoded spaces when downloading with the "fopen" option (the "curl" option was not affected). Added a couple new $options to $sanitizer->url() method for dictating how encoded characters should be handled. Added WireHttp::setValidateURLOptions() method for cases where you want to manually specify different options for validating the URL in WireHttp.
|
2018-06-27 08:30:31 -04:00 |
|
Ryan Cramer
|
28d275fe4d
|
Fix issue processwire/processwire-issues#616 where PHP 7.2 is throwing deprecation notices for default arguments of idn_to_utf8() and idn_to_ascii(). The deprecation change and new defaults for next major PHP version does not appear to affect our usage after several tests, so opted to suppress these notices.
|
2018-06-15 07:58:50 -04:00 |
|
Ryan Cramer
|
fff1250211
|
Various minor updates: add a $config->version($minVersion) function, add @since tags in Sanitizer, update count() => wireCount() in FieldtypePageTable and add PHPdoc hints where phpstorm is asking for them, update InputfieldImage to track change for the field when an action manipulates the image file, plus some other minor odds and ends.
|
2018-06-12 07:06:40 -04:00 |
|
Ryan Cramer
|
d2da3adcf7
|
Add new $mail->mail() method, which is the same as the existing $mail->send() method except that its arguments duplicate those of PHP mail(), making it possible to use as a drop-in replacement for PHP mail().
|
2018-05-31 13:17:22 -04:00 |
|
Ryan Cramer
|
863abee8bb
|
mprovements and new options for $sanitizer methods: text(), textarea(), unentities(). Plus, add new $sanitizer->removeWhitespace() method that can remove 99 different types of whitespace that can appear in a string (which includes the obvious whitespace, but also various UTF-8 and html-entity based whitespace).
|
2018-05-31 11:07:36 -04:00 |
|
Ryan Cramer
|
8d38ad7c44
|
Add $sanitizer->truncate() function per processwire/processwire-requests#163
|
2018-05-04 15:32:54 -04:00 |
|
Ryan Cramer
|
a9ec5a640a
|
Bump version to 3.0.94
|
2018-03-02 12:01:16 -05:00 |
|
Ryan Cramer
|
9b10232b73
|
Add ability to specify roles that aren't allowed to login, related to processwire/processwire-requests#140 plus while I was in there, did some re-working of login related code in Session class and user management code in ProcessUser.module.
|
2017-12-13 10:37:39 -05:00 |
|
Ryan Cramer
|
a07855c9f6
|
Minor adjustments, mostly phpdoc related
|
2017-08-02 11:16:32 -04:00 |
|
Ryan Cramer
|
b914586f6c
|
Fix issue processwire/processwire-issues#227 update Sanitizer::selectorValue() allow exclamation point "!" at beginning of selector value
|
2017-04-13 08:54:49 -04:00 |
|
Ryan Cramer
|
e87dcd5985
|
Fix issue processwire/processwire-issues#192 where inserted emoji could cause text to be truncated on systems using dbEngine "utf8" (as opposed to "utf8mb4"). Because the emoji/MB4 detection and replacement has some overhead, it's not enabled by default. To enable, set $config->dbStripMB4=true; in your /site/config.php file.
|
2017-03-09 09:11:30 -05:00 |
|