[TikiWiki-commits] [Git][tikiwiki/tiki][tiki-tmpDir-pref] 11 commits: Barcode enhancements support for code128 and upc

"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69667432b7e0c_2b18130c2122e@gitlab-sidekiq-low-urgency-cpu-bound-v2-6878c7b954-4btg6.mail>

Sammy Ndabo pushed to branch tiki-tmpDir-pref at Tiki Wiki CMS Groupware / Tiki


Commits:
c8850ae6 by Elvis Ansima at 2026-01-09T20:30:14+00:00
Barcode enhancements support for code128 and upc
---
* Remove unnecessary blank line in UpcTest.php

* [NEW] Implement UPC validation logic and corresponding unit tests

* [ENH] Add UPC barcode type support

* [FIX] Update Barcode128 validation tests

* [FIX] update validation logic for C128

See merge request tikiwiki/tiki!9273

- - - - -
1dce4e4e by Victor Emanouilov at 2026-01-12T14:05:38+02:00
[FIX] API sync and tabulars - expose fields by name and column label, so remote side can consume properly

- - - - -
6a9e023d by Landry Bitege at 2026-01-12T15:29:00+00:00
[FIX] invitation validation: require {link} in email content and prevent CSV parsing warnings
---
* [FIX] invitation validation: require {link} in email content and prevent CSV parsing warnings

See merge request tikiwiki/tiki!9305

- - - - -
da808026 by Sandeep D at 2026-01-12T17:38:45+00:00
[ENH] Update PHP version constants to support PHP 8.5
---
* [ENH] Update PHP version constants to support PHP 8.5

See merge request tikiwiki/tiki!9344

- - - - -
1e1aac5b by Merci Jacob at 2026-01-12T19:18:16+00:00
[ENH] Add Retry-After header alongside the "use_load_threshold" feature to better manage bot load
---
* [ENH] Add Retry-After header alongside the "use_load_threshold" feature to better manage bot load

See merge request tikiwiki/tiki!9349

- - - - -
6d0abd89 by Sandeep D at 2026-01-12T23:20:46+00:00
[FIX][ENH] SEF URLs: fix incorrect noindex tags when PHP files disallowed in robots.txt
---
* [FIX][ENH] SEF URLs: fix incorrect noindex tags when PHP files disallowed in robots.txt

Implements a comprehensive robots.txt parser for Tiki that properly handles SEF URLs, prevents incorrect NOINDEX tags, and follows Google's robots.txt specification (RFC 9309).

**Problems Fixed:**
- **SEF URLs incorrectly receiving NOINDEX** - When SEF URLs are enabled and PHP files are disallowed in robots.txt, ALL pages (including SEF URLs) were getting NOINDEX tags
- **Conflicting meta directives** - Templates concatenated global and page-specific robots directives, creating contradictions like `"index, follow, NOINDEX, NOFOLLOW"`
- **No proper robots.txt parsing** - Simple regex matching without wildcard support, user-agent matching, or caching

**Key Changes:**

**New Parser Architecture**
- **`lib/core/RobotsTxt/Parser.php`** - Parses robots.txt into tree structure
- **`lib/core/RobotsTxt/Matcher.php`** - Handles URL matching with wildcard support
- Implements RFC 9309 specification (user-agent matching, Allow/Disallow precedence, wildcards)

**Enhanced `lib/headerlib.php`**
- `getRobots()` now detects SEF URLs and returns null (no NOINDEX for SEF URLs)
- Added `getRobotsTxtTree()` with caching using `filemtime()` invalidation
- Fixed `setXRobotsTag()` to use actual parameter value instead of hardcoded 'noindex'

**Fixed Template Meta Tag Conflicts**
- `templates/header.tpl` and `templates/layouts/admin/header.tpl`
- Check both sources for restrictive directives (noindex/nofollow)
- If either has restrictive → use only that one (no concatenation)
- Only combine when neither has conflicts

**Centralized in `tiki-setup.php`**
- Handles robots.txt checking for all pages
- Sets both meta tag and X-Robots-Tag header
- Respects page-specific custom robots preference

See merge request tikiwiki/tiki!9346

- - - - -
03bc0a49 by Benoit Roy at 2026-01-13T15:27:30+00:00
[FIX] cypht: changes to mobile advanced search
---
* [FIX] cypht: changes to mobile advanced search

See merge request tikiwiki/tiki!9227

- - - - -
46338e6e by christer77 at 2026-01-13T15:34:07+00:00
[ENH] Webmail: adding restore button for tracker item messages in tracker folder
---
* [ENH] EmailFolder: adding restore field

* [ENH] Webmail: adding restore button for tracker item messages in tracker folder

See merge request tikiwiki/tiki!9015

- - - - -
8cc7f26a by Sammy Ndabo at 2026-01-13T18:34:20+02:00
FIX ENH prefs: respect tmpDir preference for temp files and web assets

- - - - -
38f3afba by Sammy Ndabo at 2026-01-13T18:34:22+02:00
[ENH] tempDir: remove unnecessary rtrim from tiki_temp_dir calls for consistency

- - - - -
31b9b4ed by Sammy Ndabo at 2026-01-13T18:34:22+02:00
[DOC] tiki_temp_dir: enhance code documentation

- - - - -


55 changed files:

- lib/Filegals/FileGalLib.php
- lib/Filegals/H5PLib.php
- lib/TikiWebServiceTemplate.php
- lib/captcha/captchalib.php
- lib/codemirror_tiki/tiki_codemirror.php
- lib/core/File/DiagramHelper.php
- lib/core/HeadlessBrowser/Casperjs.php
- lib/core/IDS/Rule.php
- + lib/core/RobotsTxt/Matcher.php
- + lib/core/RobotsTxt/Parser.php
- lib/core/Services/Language/Controller.php
- lib/core/Services/Language/TranslationReader.php
- lib/core/Services/PDF/Controller.php
- lib/core/Services/Tracker/TabularController.php
- lib/core/Tiki/Command/DatabaseEngineConvertCommand.php
- lib/core/Tiki/Command/IndexCompareEnginesCommand.php
- lib/core/Tiki/Command/ThemeInstallCommand.php
- lib/core/Tiki/Connect/Server.php
- lib/core/Tiki/PagePdfExporter.php
- lib/core/Tracker/Field/BarCode.php
- lib/core/Tracker/Field/EmailFolder.php
- lib/cypht/modules/tiki/functions.php
- lib/cypht/modules/tiki/setup.php
- lib/cypht/modules/tiki/site.js
- lib/cypht/modules/tiki/tracker_modules.php
- lib/headerlib.php
- lib/jquery_tiki/tiki-diagram.js
- lib/parser/parserlib.php
- lib/pdflib.php
- lib/prefs/load.php
- lib/prefs/metatag.php
- lib/setup/load_threshold.php
- lib/socnets/Util.php
- + lib/test/Core/RobotsTxt/MatcherTest.php
- lib/test/Core/Validators/Barcode128Test.php
- + lib/test/Core/Validators/UpcTest.php
- + lib/test/lib/HeaderLibTest.php
- lib/tikilib.php
- lib/userprefs/userprefslib.php
- lib/validators/validator_barcode128.php
- + lib/validators/validator_upc.php
- lib/vue/vuejslib.php
- lib/wiki-plugins/wikiplugin_archivebuilder.php
- lib/wiki-plugins/wikiplugin_ftp.php
- php_version_constants.php
- templates/admin/include_general.tpl
- templates/admin/include_metatags.tpl
- templates/admin/include_security.tpl
- templates/header.tpl
- templates/layouts/admin/header.tpl
- templates/tiki-invite.tpl
- themes/base_files/scss/_cypht-tiki.scss
- tiki-invite.php
- tiki-setup.php
- tiki-webdav.php


The diff was not included because it is too large.


View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/compare/7d9e4bbb1d3900f9c7012386c320e0ae076c6169...31b9b4ed670cb3db103055d8b26c6dde330b4bc1

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/compare/7d9e4bbb1d3900f9c7012386c320e0ae076c6169...31b9b4ed670cb3db103055d8b26c6dde330b4bc1
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.