- 26 Apr, 2017 2 commits
-
-
Carsten Rose authored
-
Carsten Rose authored
Renamed two bat files - makes trouble if they are send by email - will be blocked, even if they are inside of a zip.
-
- 24 Apr, 2017 10 commits
-
-
Carsten Rose authored
-
Carsten Rose authored
Implemented defaultEscapeType. configurable via config.qfq.ini (global) and per Form. Implemented max GET parameter lenght. Default: 50. BTW: in phpunit test there have been a parameter 'file' which exceeds the limit of 32. Config.qfq: Skip empty variable names - happens in phpunit tests. Read new `systemEscapeTypeDefault`. Constants.php: renamed TOKEN_LDAP_ESCAPE_* to TOKEN_ESCAPE_LDAP_*. Add TOKEN_ESCAPE_MYSQL, TOKEN_ESCAPE_NONE Database.php: Set charset to real_escape_string() functions properly. Proxy for mysqli::real_escape_string() Evaluate.php: Respect global escapeTypeDefault. Implement formEditor.sql: add column `escapeTypeDefault`. Add FormElement 'escapeTypeDefault'.
-
Carsten Rose authored
-
Carsten Rose authored
-
Carsten Rose authored
Manual.rst: small abstract about implemented security enhancements in QFQ. Sanatize.php: New function urlDecodeArr(). Decode all _GET vars. AbstractBuildForm.php, BuildFormBootstrap.php: form head now contains the honeypot vars.
-
bbaer authored
-
Carsten Rose authored
Fix from BB seems to help in 90%: window.onblur(). QuickFormQuery.php: Add 'windows.onblur'
-
Carsten Rose authored
Config.php: Defaults are now set in Config.php, not in Store.php anymore. New function setDefaults(), checkForAttack().
-
bbaer authored
-
bbaer authored
-
- 23 Apr, 2017 9 commits
-
-
Carsten Rose authored
Play: ALTER TABLE `FormElement` ADD `encode` ENUM( 'none', 'specialchar' ) NOT NULL DEFAULT 'specialchar' AFTER `subrecordOption` ; Play: formEditor.sql Attention: FEs with text=editor needs actions - the default of 'specialchar' prohibits saving of HTML tags. FillStoreForm.php: Submitted values will be specialchars() before copying to STORE_FORM. AbstractBuildForm.php: Counterpart of FillStoreForm.php - will htmlspecialchars_decode() values read from database. Replace 'checkType' and 'checkPattern' with CONSTANTS. formEditor.sql: Added new column in FormElement. Add new FormElement 'encode' in FormElement-Editor. Add column 'encode' to all FormElement records.
-
Carsten Rose authored
Store.php: fillStoreClient now htmlentities() the $_SERVER array.
-
Carsten Rose authored
Manual.rst: Cleanup doc for wkhtmltopdf. Remove all references to excel export. Add best practice for 'export area' (IP based restriction).
-
Carsten Rose authored
-
Carsten Rose authored
-
Carsten Rose authored
Handling of filenames in Zip's optimized. Spoken filename (no cryptic tempnames anymore). Correct filename extension, based on the mimetype. Manual.rst: updated doc for columns _pPdf,_zZip, _fFile. Remove doc for '_dDownload'. Download.php: new function targetFilenameExtension(). Replace cryptic temporary filenames against file-1, ... Link.php: reorder param array, to make TOKEN_DOWNLOAD position independet Report.php: Implemented _pPdf,_zZip, _fFile.
-
Carsten Rose authored
QucikFormQuery.php: Update default text.
-
Carsten Rose authored
-
Carsten Rose authored
Link.php: If there is no output filename defined, the default is now computed in Download.php, not in Link.php as before. Download.php: Extract filename extension from mimetype, compare it with output filename, if it does not match, append the computed extension. This forces the filemanager to open the correct application after download.
-
- 22 Apr, 2017 4 commits
-
-
Carsten Rose authored
-
Carsten Rose authored
Html2Pdf.php: Fixed a problem with broken adding of '=' to TOKEN_URL. Fixed problem that missing 'http' at the beginning confuses wkhtmltopdf.
-
Carsten Rose authored
* Recode the '_link' notation for download * Add 'ZIP' as export format * Add 'parameter' to wkhtmltopdf * Implemented 'SYSTEM_STORE / SYSTEM_DOWNLOAD_POPUP' for detecting if there are download links on the page. This eleminates passing parameters through dozens of functions. * Report/Columntype '_dDownload' broken! Coding.md: described `download` from a coding point of view. Manual.rst: Update '_link' to latest notation of 'download'. download.php: implemented catching of 'Undefined index'. Added further exceptions. Download.php: Added cache=off for downloading. Rename getFile() to getElement(). Make getElement() more generic. Add zipFiles(). Implement 'downloadMode' in doElements(). Html2Pdf.php: recode to new download notation. Parameter to wkhtmltopdf implemented. Link.php: New TOKEN_* and NAME_DOWNLOAD_*, NAME_FILE. Move TOKEN_* to Constants.php. Will be used in Download.php too. Implemented 'SYSTEM_STORE / SYSTEM_DOWNLOAD_POPUP'. Implemented BASE64 encoding of multiple 'U' and 'u'. Report.php: Implemented 'SYSTEM_STORE / SYSTEM_DOWNLOAD_POPUP'. Sip.php: implement debugSip() to show Sip. New: base64 encoded parameter will be shown in clear. Store.php: some functions missed keyword 'static'. getVar() and getStore automatically decode base64 parameter. QuickFormQuery.php: Implemented 'SYSTEM_STORE / SYSTEM_DOWNLOAD_POPUP'.
-
Carsten Rose authored
* Recode the '_link' notation for download * Add 'ZIP' as export format * Add 'parameter' to wkhtmltopdf * Implemented 'SYSTEM_STORE / SYSTEM_DOWNLOAD_POPUP' for detecting if there are download links on the page. This eleminates passing parameters through dozens of functions. * Report/Columntype '_dDownload' broken! Coding.md: described `download` from a coding point of view. Manual.rst: Update '_link' to latest notation of 'download'. download.php: implemented catching of 'Undefined index'. Added further exceptions. Download.php: Added cache=off for downloading. Rename getFile() to getElement(). Make getElement() more generic. Add zipFiles(). Implement 'downloadMode' in doElements(). Html2Pdf.php: recode to new download notation. Parameter to wkhtmltopdf implemented. Link.php: New TOKEN_* and NAME_DOWNLOAD_*, NAME_FILE. Move TOKEN_* to Constants.php. Will be used in Download.php too. Implemented 'SYSTEM_STORE / SYSTEM_DOWNLOAD_POPUP'. Implemented BASE64 encoding of multiple 'U' and 'u'. Report.php: Implemented 'SYSTEM_STORE / SYSTEM_DOWNLOAD_POPUP'. Sip.php: implement debugSip() to show Sip. New: base64 encoded parameter will be shown in clear. Store.php: some functions missed keyword 'static'. getVar() and getStore automatically decode base64 parameter. QuickFormQuery.php: Implemented 'SYSTEM_STORE / SYSTEM_DOWNLOAD_POPUP'.
-
- 21 Apr, 2017 3 commits
-
-
bbaer authored
-
bbaer authored
-
Carsten Rose authored
-
- 20 Apr, 2017 8 commits
-
-
Carsten Rose authored
Implemented spinning wheel (hourglass) displayed during rendering and downloading PDF. Link.php, Report.php: New $vars[NAME_EXTRA_CONTENT_WRAP] which holds a '<button>' definition with necesary 'data-*' attributes. The Modal Dialog needs a uniq html id (derived from ttContentUid). That one is returned to Report() if there is at least one download element.
-
Carsten Rose authored
Implemented spinning wheel (hourglass) displayed during rendering and downloading PDF. Link.php, Report.php: New $vars[NAME_EXTRA_CONTENT_WRAP] which holds a '<button>' definition with necesary 'data-*' attributes. The Modal Dialog needs a uniq html id (derived from ttContentUid). That one is returned to Report() if there is at least one download element.
-
Carsten Rose authored
-
Carsten Rose authored
Implemented download.php to offer SIP protected downloads for single files (any filetype) as well as concatenated PDF files and converted HTML pages. download.php: API Interface DownloadException.php: New exception class for downloads - might be extended for better error handling. OnArray.php: new function getArrayItemKeyNameStartWith() to filter for specific elements in an array. New function arrayEscapeshellarg() to escape args Download.php: Main class. Link.php, Report.php: implemented new link type 'd' (=download)
-
bbaer authored
-
bbaer authored
-
bbaer authored
-
bbaer authored
-
- 18 Apr, 2017 1 commit
-
-
Carsten Rose authored
Split PHP 'print.php' in a pure API file 'print.php' and a class 'Html2Pdf.php' - the class will be reused by Download.php
-
- 17 Apr, 2017 1 commit
-
-
Carsten Rose authored
-
- 13 Apr, 2017 2 commits
-
-
Carsten Rose authored
-
Carsten Rose authored
Manual.rst: Prefetch doc enhanced. Ldap.php: replacement of '?' in LDAP search not processed with MODE_LDAP_PREFETCH - fixed. FE_TYPEAHEAD_LDAP_KEY_PRINTF renamed to FE_TYPEAHEAD_LDAP_ID_PRINTF AbstractBuildForm.php: copy 'FE_TYPEAHEAD_LDAP_ID_PRINTF' to SIP seems never be done - fixed
-