Coder Social home page Coder Social logo

filter's People

Contributors

andrepereiradasilva avatar brianteeman avatar csthomas avatar dongilbert avatar drmmr763 avatar eddieajau avatar elkuku avatar hackwar avatar hleithner avatar ianmacl avatar infograf768 avatar jbanety avatar joomla-jenkins avatar mbabker avatar nibra avatar philetaylor avatar photodude avatar realityking avatar richard67 avatar ryandemmer avatar snipersister avatar vess avatar wilsonge avatar zero-24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

filter's Issues

Saving Global Configuration broken in the 4.0-dev branch of the CMS when updating joomla/filter from 2.0.0-beta2 to 2.0.0-beta3 or 2.0.0-beta4

Steps to reproduce the issue

It seems that beginning with version 2.0.0-beta3, the filter package breaks saving Global Configuration in the 4.0-dev branch of the CMS, see joomla/joomla-cms#32207 (comment) .

I.e. update the filter package on J4 to version 2.0.0-beta3 or 2.0.0-beta4. Then go to Global Configuration and try to save.

Expected result

Works.

Actual result

PHP Recoverable fatal error:  Object of class stdClass could not be converted to string
in /home/richard/lamp/public_html/joomla-cms-4.0-dev/libraries/vendor/joomla/filter/src/InputFilter.php on line 239,
referer: https://www.joomla-40-dev.vmkubu02.vmnet2.local/administrator/index.php?option=com_config

System information (as much as possible)

Additional comments

Path filter does not allow dots at the beginning of folders / files names

Paths with dots at the beginning of folder or file name doesn't pass current path filter regular expressions. For example /var/www/.secret doesn't pass, even it is valid path. This influence Joomla CMS update system, when used such path for global temp dir.

Steps to reproduce the issue

Set in Joomla global configuration Temp path with hidden folder (starting with dot), for example /var/www/.tmp.
Go to Joomla update component and try to download and install update.

Expected result

No error, update is installed.

Actual result

Error is displayed, update is not installed.

System information (as much as possible)

Joomla CMS with Joomla Filter 1.4.3

Additional comments

This is B/C break in Joomla CMS, as it influence Joomla update system. Path doesn't pass filter, so returns empty string, which causes updater to fail download update file, with incorrect error message.

Tried to solve it in joomla/joomla-cms#33151, which was incorrect, as I was noticed of double dots folders (and also PR to wrong project :))

OutputFilter.php uses broken classes from CMS

Steps to reproduce the issue

This is an issue that was found out in joomla/joomla-cms#38993 and is still valid in the current codebase of the filter package. In 0556634 the language class from the CMS is used in the OutputFilter class and besides that, the use-statement is wrong. So right now this stringUrlSafe() does not work.

"Raw" filter returns string

Steps to reproduce the issue

var_dump((new Joomla\Filter\InputFilter)->clean(1, 'raw'));

Expected result

int 1

Actual result

string '1'

System information (as much as possible)

Additional comments

Since e4d3d15.

Valid hidden Joomla files/folders sometimes fail the filter

Steps to reproduce the issue

  1. Apply the path filter to the path

/var/www/vhosts/website-net/subdomain-website-net/._hiddenTemp

  1. Apply the path filter to the path

/var/www/vhosts/website.net/subdomain.website.net/._hiddenTemp

Expected result

  1. Should return the cleaned path

/var/www/vhosts/website-net/subdomain-website-net/._hiddenTemp

  1. Should return the cleaned path

/var/www/vhosts/website.net/subdomain.website.net/._hiddenTemp

Actual result

  1. Returns the path

/var/www/vhosts/website-net/subdomain-website-net/._hiddenTemp

  1. Returns an empty path

``

Additional comments

Plesk servers use the domain/subdomain pattern 2 so this is a live issue.

Additionally the use of hidden files/folders is a valid and security enhancing use case - setting the Joomla tmp or log directory to a hidden *nix folder is a good thing. Also can be used to install a hidden Joomla installation in an obscure and hidden sub-folder of a live site.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.