We normally use the classes
located in the joomla.filesystem library when dealing with the local file system.
There are many other APIs and web services available on the Internet. Simple
integration of these is often 'lapped up' by administrators. Beyond this, we can
seamlessly use web services to improve the functionality of our extensions drastically.
Error Handling and Security
Security and graceful error handling is imperative to any good computer system.
For systems like Joomla!, which are often available on the World Wide Web, poor
security or incorrect error handling carries a high risk factor, and that risk is often
higher when using third-party extensions.
This chapter focuses on four main subjects:
Errors, Warnings, and Notices
Dealing with CGI Request Data
Access Control
Attacks
Handling errors is a common task; we will explore the different error levels, which
we use to classify our errors, and ways in which we can modify the error levels and
how they are handled.
Many security flaws in Joomla! extensions originate from inadequate processing of
input data.
Pages:
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426