moodle/lib
Eloy Lafuente (stronk7) e2821bf1ce MDL-73824 gradebook: Stricter float check to some gradelib functions
It has been detected that, right now, some localised floats are
being passed to those functions (say comma separator, say thousands)
and that's leading to all sort of problems later when comparing,
processing or storing those "wrong-floats" (user entered).

This just makes all those functions to be stricter, so any attempt
of passing to them a wrong float will fail with a clear TypeError.

Any existing case must be converted to a corrrect (X.Y) format, using
unformat_float() or PARAM_LOCALISEDFLOAT before any processing.

Localised floats cannot be used.

Also, fix all the places where those functions are called from
files having strict_types enabled because, with that, now float-like
strings are not accepted any more. Luckily, there is only case,
within the grade/classes/component_gradeitem.php file, and it has
been fixed by casting the float-like string coming from DB to float.
2022-03-03 12:19:02 +01:00
..
adodb MDL-73664 lib: Set Moodle files after ADODB upgrade 2022-02-03 13:56:02 +01:00
ajax MDL-70801 core_my: Add a new courses page 2021-11-15 11:49:35 +08:00
amd Merge branch 'MDL-73915-master-terser' of https://github.com/andrewnicols/moodle 2022-02-24 17:29:17 +08:00
antivirus Merge branch 'MDL-70269' of https://github.com/timhunt/moodle 2021-04-16 07:57:00 +01:00
behat Merge branch 'MDL-73883-master' of https://github.com/andrewnicols/moodle 2022-02-21 15:35:11 +01:00
bennu
classes MDL-71636 qbank_columnsortorder: Fix issues identified during integration 2022-03-02 20:18:41 +08:00
db Merge branch 'MDL-73953-master' of https://github.com/aanabit/moodle 2022-03-02 14:33:07 +01:00
ddl MDL-73095 core_ddl: Fix binary type field check 2021-11-18 17:53:00 +11:00
dml MDL-73450 installation: Support Aurora MySQL >= 8.0.0 2022-02-10 15:14:35 -05:00
dtl MDL-72871 cleanup: Remove incorrect whitespace from codebase 2021-10-26 17:19:11 +02:00
editor Merge branch 'MDL-72092-master' of https://github.com/Chocolate-lightning/moodle 2022-03-01 14:55:02 +01:00
emoji-data MDL-71721 lib: Set Moodle files after emoji-data upgrade 2022-01-10 10:36:23 +01:00
evalmath
external MDL-73476 phpunit: events, external and search tescase names 2022-01-14 16:18:39 +01:00
filebrowser MDL-67673 phpunit: Fix the return type of template methods 2020-10-21 12:45:59 +02:00
filestorage MDL-72701 unit tests: Fix broken @covers annotations 2021-12-21 09:24:00 +08:00
fonts
form MDL-72737 core: Rebuild JS modules 2022-03-01 19:22:24 +08:00
geopattern-php MDL-73601 lib: Normalize readme_moodle.txt file name 2022-02-01 18:10:36 +01:00
google MDL-73523 libraries: openssl_free_xxx() methods are deprecated in php80 2022-01-20 14:48:22 +01:00
grade MDL-72873 core_grades: Remove $CFG->grade_navmethod 2021-12-16 00:10:13 +08:00
horde MDL-73405 libraries: php80 compatibility fix to Horde Imap Client 2021-12-19 12:22:14 +01:00
html2text MDL-70295 libraries: upgrade to version 4.3.1 of Html2Text. 2020-11-25 21:35:14 +00:00
htmlpurifier NOBUG: Fixed file access permissions 2021-01-22 11:30:38 +08:00
http-message MDL-69548 core: Adding the http-message library 2020-09-18 10:01:09 +08:00
jquery MDL-71704 lib: Set Moodle files after JQuery upgrade 2022-01-11 12:07:20 +01:00
lti1p3 MDL-69542 libraries: Add the LTI 1.3 library 2022-02-11 10:07:39 +08:00
ltiprovider
markdown MDL-70296 core: Update the moodle's readme, xml and upgrade files 2021-01-18 09:30:02 +08:00
maxmind MDL-71709 libraries: upgrade to version 1.10.1 of MaxMind. 2021-08-10 09:37:31 +01:00
minify MDL-71702 lib: Set Moodle files after minify upgrade 2022-01-11 10:41:08 +01:00
mlbackend MDL-71715 lib: update PHP-ML to 0.9.0 2022-01-12 14:47:58 +02:00
mustache
pear MDL-73601 lib: Normalize readme_moodle.txt file name 2022-02-01 18:10:36 +01:00
php-css-parser MDL-73601 lib: Normalize readme_moodle.txt file name 2022-02-01 18:10:36 +01:00
php-enum MDL-71723 core: Upgrade php-enum to 1.8.3 2021-12-09 16:11:14 +02:00
php-jwt MDL-69542 libraries: Add the LTI 1.3 library 2022-02-11 10:07:39 +08:00
phpmailer MDL-73601 lib: Normalize readme_moodle.txt file name 2022-02-01 18:10:36 +01:00
phpspreadsheet MDL-71720 lib: Set Moodle files after PHPSpreadSheet upgrade 2022-01-14 12:45:54 +01:00
phpunit MDL-73592 phpunit: Run adhoc tasks after install 2022-02-18 02:09:49 +11:00
plist MDL-70318 core: Moodle customisations. 2021-03-19 10:19:10 +02:00
polyfills MDL-67536 libraries: replace babel-polyfill with core-js 2021-06-21 12:03:58 +10:00
portfolio MDL-72615 core: Remove boxnet portfolio and repository 2021-10-27 06:24:55 +02:00
requirejs MDL-71704 lib: Set Moodle files after JQuery upgrade 2022-01-11 12:07:20 +01:00
rtlcss MDL-73601 lib: Normalize readme_moodle.txt file name 2022-02-01 18:10:36 +01:00
scssphp MDL-73601 lib: Normalize readme_moodle.txt file name 2022-02-01 18:10:36 +01:00
simplepie MDL-70293 libraries: upgrade to version 1.5.6 of SimplePie. 2020-11-25 20:44:03 +00:00
spout MDL-71707 libraries: upgrade to version 3.3.0 of Spout. 2021-10-05 08:04:47 +01:00
table MDL-73915 js: Drop support for IE and android 2022-02-23 08:55:20 +08:00
tcpdf MDL-70902 libraries: upgrade to version 6.4.1 of TCPDF 2021-04-20 11:53:54 +02:00
templates Merge branch 'MDL-73595-master' of https://github.com/bmbrands/moodle 2022-02-28 20:33:31 +08:00
testing MDL-69542 core_lib: make lti tool generator default to legacy version 2022-02-11 11:01:26 +08:00
tests Merge branch 'MDL-72737-master-2' of https://github.com/bmbrands/moodle 2022-03-01 19:06:52 +08:00
userkey MDL-73348 phpunit: normalize all privacy provider tests 2021-12-17 14:21:02 +01:00
xapi MDL-72701 unit tests: Generate default coverage 2021-12-21 09:24:00 +08:00
xhprof MDL-71705 libraries: Moodle customizations. 2021-12-09 14:19:33 +02:00
xmldb MDL-70931 xmldb: Generate install.xml files with EOL and EOF 2021-02-17 20:59:19 +01:00
yui MDL-73915 js: Upgrade babel and eslint 2022-02-23 08:53:54 +08:00
yuilib MDL-70992 Folder: Unnecessary tab stops to the left of files 2021-03-17 09:30:04 +07:00
zipstream MDL-69548 core: Adding the ZipStream library 2020-09-17 14:16:59 +08:00
accesslib.php MDL-72616 blocks: Remove block_quiz_results 2021-10-27 06:23:04 +02:00
adminlib.php MDL-73270 admin: Warn about xmlrpc webservice protocol enabled 2022-01-28 09:32:08 +07:00
authlib.php MDL-71051 core_user: always use API when working with profile fields 2021-04-28 11:39:04 +02:00
badgeslib.php MDL-72945 badges: use default issuer contact 2021-10-28 17:43:49 +02:00
blocklib.php MDL-72092 core: Re-arrange the default dashboard 2022-02-25 15:12:50 +08:00
cacert.pem
cacert.txt
clilib.php MDL-70131 cli: only allow to negate existing keys 2020-11-06 09:30:08 +08:00
completionlib.php MDL-73756 lib: deprecate modinfo parameter from get_data 2022-03-01 10:20:46 +08:00
componentlib.class.php
components.json MDL-73728 admin: Move adminpresets to admin/presets 2022-02-03 19:14:28 +08:00
conditionlib.php
configonlylib.php MDL-71637 core: Set default for mb_substitute_character 2021-05-26 13:51:46 +08:00
cookies.js
cronlib.php MDL-70357 cron: Catch Throwables not just Exceptions when running tasks 2020-11-30 17:25:19 +01:00
csslib.php
csvlib.class.php MDL-72035 csvlib: Write BOM for Excel 2021-06-30 15:04:16 +01:00
customcheckslib.php
dataformatlib.php
datalib.php MDL-73140 grade history: fix badly formatted lists 2021-11-22 23:48:19 +00:00
ddllib.php
default.ttf
deprecatedlib.php MDL-72911 core_courseformat: fix deprecation messages 2021-12-28 12:50:53 +01:00
dmllib.php
dtllib.php
editorlib.php
emptyfile.php
enrollib.php Merge branch 'MDL-72875-master-v2' of https://github.com/peterRd/moodle 2021-12-03 14:29:59 +02:00
environmentlib.php MDL-68735 env: Moodle 3.8.x, 3.9.x and 3.10.x do not support PHP 8.0 2021-02-26 13:07:59 +01:00
excellib.class.php MDL-72967 lib: fix typo in excellib insert_bitmap() method 2021-11-16 10:31:42 +08:00
externallib.php MDL-73000 webservice: Fix external_warnings message type 2021-11-23 16:15:08 +01:00
filelib.php MDL-73826 phpunit: Allow curl mock responses to handle empty strings 2022-02-11 23:50:05 +01:00
filterlib.php
flickrclient.php MDL-71741 portfolio: Reset header information between requests 2021-06-03 10:49:50 +07:00
flickrlib.php
formslib.php MDL-72737 theme_boost: update for section header styles 2022-03-01 12:01:59 +01:00
gdlib.php MDL-70968 core: PHP8 compatibility, not allowed to pass extra parameters 2021-02-28 19:43:37 +01:00
googleapi.php MDL-58939 lib_google: Remove google_picasa class 2021-09-17 10:46:10 +02:00
gradelib.php MDL-73824 gradebook: Stricter float check to some gradelib functions 2022-03-03 12:19:02 +01:00
graphlib.php MDL-70750 mod_survey: Fix warning for undefined offset. 2021-06-21 08:41:48 +02:00
grouplib.php MDL-69908 user: include groups with exported course participants. 2021-06-14 09:31:30 +01:00
index.html
installlib.php Merge branch 'MDL-73397-master' of https://github.com/aanabit/moodle 2022-01-04 22:48:40 +11:00
javascript-static.js MDL-72449 core: Fix show_confirm_dialog submission 2021-09-21 10:10:02 +08:00
javascript.php
jslib.php
jssourcemap.php
ldaplib.php
lexer.php MDL-72871 cleanup: Remove incorrect whitespace from codebase 2021-10-26 17:19:11 +02:00
licenselib.php MDL-69698 licenses: Do not cache the localised licenses fullnames 2020-09-15 10:37:06 +02:00
listlib.php
mathslib.php
messagelib.php MDL-67853 message: Remove on/offline settings on message preferences 2022-01-27 15:22:15 +01:00
modinfolib.php Merge branch 'MDL-73762-master' of https://github.com/ferranrecio/moodle 2022-03-01 09:35:59 +08:00
moodlelib.php Merge branch 'MDL-73582-master-nocache' of https://github.com/vmdef/moodle 2022-02-28 12:50:21 +08:00
myprofilelib.php MDL-28452 core_user: migrate social profile fields 2021-04-21 11:22:25 +02:00
navigationlib.php Merge branch 'MDL-73462-master' of https://github.com/peterRd/moodle 2022-03-02 13:46:10 +08:00
oauthlib.php MDL-70268 core: Update the oauthlib to exclude scope if none provided 2021-03-03 12:03:40 +08:00
odslib.class.php
outputactions.php
outputcomponents.php Merge branch 'MDL-70792-master-2' of https://github.com/junpataleta/moodle 2022-02-25 11:39:55 +08:00
outputfactories.php
outputfragmentrequirementslib.php
outputlib.php MDL-72413 core: Introduce new header component to render standard items 2021-12-13 09:49:34 +08:00
outputrenderers.php MDL-73679 core: Add a named_templatable interface 2022-03-01 12:03:06 +08:00
outputrequirementslib.php MDL-72928 login: Update styling and functionality 2022-02-11 12:01:26 +08:00
pagelib.php MDL-72930 navigation: Remove duplicated navigation boxes. 2022-01-04 15:58:52 +08:00
pdflib.php
phpminimumversionlib.php
plagiarismlib.php MDL-71175 plagiarism: Deprecate some old functions. 2021-06-25 12:57:20 +12:00
portfoliolib.php MDL-72413 core: Disable the default activity header 2021-12-13 09:49:35 +08:00
questionlib.php MDL-71696 core_question: class autoload changes 2022-02-03 22:22:50 +11:00
recaptchalib_v2.php
requirejs.php
resourcelib.php
rsslib.php MDL-70893 various: optional function arguments must be in the end 2021-02-15 16:53:37 +01:00
searchlib.php
sessionlib.php
setup.php MDL-73098 install: Detect stale bootstrap.php files and disable them 2021-11-17 20:56:36 +01:00
setuplib.php MDL-73427 core: Remove $SESSION->fromurl 2022-01-05 19:39:21 +08:00
soaplib.php
statslib.php
tablelib.php MDL-72565 tablelib: Add modifications needed for report card view 2021-11-11 13:55:31 +01:00
thirdpartylibs.xml MDL-69542 libraries: Add the LTI 1.3 library 2022-02-11 10:07:39 +08:00
tokeniserlib.php
upgrade.txt MDL-73824 gradebook: Stricter float check to some gradelib functions 2022-03-03 12:19:02 +01:00
upgradelib.php MDL-73270 admin: Warn about xmlrpc webservice protocol enabled 2022-01-28 09:32:08 +07:00
uploadlib.php
validateurlsyntax.php
wasmlib.php MDL-65943 media_videojs: add videojs-ogvjs plugin 2021-10-17 21:52:05 +07:00
webdavlib.php
weblib.php MDL-48269 group: Remove the option to hide the picture of a group 2021-02-16 12:46:58 +08:00
wiki_to_markdown.php
womenslib.php
wordlist.txt
xhtml.xsl
xmlize.php
xsendfilelib.php