Loading...
 
Development

Development


Using Header location instead a return true in index.php files

posts: 1

There are a lot lot of files using header location for index.php instead some other solutions like return true.

Some of this files are included by other files and the redirection is applied (like lib/prefslib.php loading getDefaults that return files in lib/prefs/ when exists a index.php with a header location redirecting to index).

I think that the best option is replacing the header location with a return true.

This solution doesn't will allow to load a directory index and will prevent the unwanted rediretions.

Files with a header location in index:


img/icons/mime/index.php
img/icons/large/index.php
img/icons/sprite/index.php
img/openlayers/dark/index.php
installer/script/index.php
lib/db/index.php
lib/geo/index.php
lib/ajax/index.php
lib/core/Feed/Html/index.php
lib/core/Feed/ForwardLink/index.php
lib/core/Feed/Remote/ForwardLink/index.php
lib/core/Feed/Remote/index.php
lib/core/Feed/index.php
lib/core/Math/index.php
lib/core/Math/Formula/Parser/index.php
lib/core/Math/Formula/Runner/index.php
lib/core/Math/Formula/index.php
lib/core/Math/Formula/Function/index.php
lib/core/Event/index.php
lib/core/Horde/Yaml/index.php
lib/core/Horde/index.php
lib/core/Perms/Check/index.php
lib/core/Perms/Reflection/index.php
lib/core/Perms/index.php
lib/core/Perms/ResolverFactory/index.php
lib/core/Perms/Resolver/index.php
lib/core/Category/index.php
lib/core/Report/index.php
lib/core/Report/Definition/index.php
lib/core/Search/Expr/index.php
lib/core/Search/Type/index.php
lib/core/Search/Type/Factory/index.php
lib/core/Search/Index/index.php
lib/core/Search/Query/index.php
lib/core/Search/Query/WeightCalculator/index.php
lib/core/Search/Formatter/Plugin/index.php
lib/core/Search/Formatter/DataSource/index.php
lib/core/Search/Formatter/ValueFormatter/index.php
lib/core/Search/Formatter/index.php
lib/core/Search/ResultSet/index.php
lib/core/Search/ContentFilter/index.php
lib/core/Search/GlobalSource/index.php
lib/core/Search/index.php
lib/core/Search/ContentSource/index.php
lib/core/TikiDb/index.php
lib/core/WikiParser/index.php
lib/core/FileGallery/index.php
lib/core/Multilingual/Aligner/index.php
lib/core/Multilingual/MachineTranslation/index.php
lib/core/Multilingual/index.php
lib/core/Connect/index.php
lib/core/TikiFilter/index.php
lib/core/Reports/Send/index.php
lib/core/Reports/index.php
lib/core/Services/AuthSource/index.php
lib/core/Services/Draw/index.php
lib/core/Services/File/index.php
lib/core/Services/User/index.php
lib/core/Services/Wiki/index.php
lib/core/Services/Favorite/index.php
lib/core/Services/Object/index.php
lib/core/Services/Category/index.php
lib/core/Services/Report/index.php
lib/core/Services/Comment/index.php
lib/core/Services/Connect/index.php
lib/core/Services/Language/index.php
lib/core/Services/index.php
lib/core/Services/ResultLoader/index.php
lib/core/Services/Exception/index.php
lib/core/Services/Tracker/index.php
lib/core/StandardAnalyzer/index.php
lib/core/StandardAnalyzer/Analyzer/Standard/index.php
lib/core/StandardAnalyzer/Analyzer/index.php
lib/core/StandardAnalyzer/TokenFilter/EnglishStemmer/index.php
lib/core/StandardAnalyzer/TokenFilter/index.php
lib/core/index.php
lib/core/JitFilter/index.php
lib/core/DeclFilter/index.php
lib/core/JisonParser/Wiki/index.php
lib/core/JisonParser/Phraser/index.php
lib/core/JisonParser/index.php
lib/core/Tracker/Field/index.php
lib/core/Tracker/index.php
lib/diff/index.php
lib/ical/iCal/Parser/index.php
lib/ical/iCal/index.php
lib/ical/index.php
lib/ldap/index.php
lib/mail/index.php
lib/logs/index.php
lib/pear/OS/index.php
lib/pear/Net/DNS/RR/index.php
lib/pear/Net/DNS/index.php
lib/pear/Net/LDAP2/index.php
lib/pear/Auth/Yadis/index.php
lib/pear/Auth/OpenID/index.php
lib/pear/Auth/Frontend/index.php
lib/pear/PEAR/REST/index.php
lib/pear/PEAR/Task/Replace/index.php
lib/pear/PEAR/Task/index.php
lib/pear/PEAR/Task/Windowseol/index.php
lib/pear/PEAR/Task/Postinstallscript/index.php
lib/pear/PEAR/Task/Unixeol/index.php
lib/pear/PEAR/Validator/index.php
lib/pear/PEAR/Downloader/index.php
lib/pear/PEAR/Command/index.php
lib/pear/PEAR/Frontend/index.php
lib/pear/PEAR/Installer/Role/index.php
lib/pear/PEAR/Installer/index.php
lib/pear/PEAR/index.php
lib/pear/PEAR/ChannelFile/index.php
lib/pear/PEAR/PackageFile/v2/index.php
lib/pear/PEAR/PackageFile/Generator/index.php
lib/pear/PEAR/PackageFile/Parser/index.php
lib/pear/PEAR/PackageFile/index.php
lib/pear/Minify/CSS/index.php
lib/pear/Minify/index.php
lib/pear/XML_Parser/tests/index.php
lib/pear/XML_Parser/Parser/index.php
lib/pear/XML_Parser/index.php
lib/pear/XML_Parser/examples/index.php
lib/soap/index.php
lib/soap/nusoap/index.php
lib/test/auth/fixtures/index.php
lib/test/auth/index.php
lib/test/core/Math/index.php
lib/test/core/Math/Formula/DummyFunction/index.php
lib/test/core/Math/Formula/index.php
lib/test/core/temp/cache/index.php
lib/test/core/temp/index.php
lib/test/core/Event/index.php
lib/test/core/Perms/Check/index.php
lib/test/core/Perms/Reflection/index.php
lib/test/core/Perms/index.php
lib/test/core/Perms/ResolverFactory/index.php
lib/test/core/Perms/Resolver/index.php
lib/test/core/Category/index.php
lib/test/core/Search/Expr/index.php
lib/test/core/Search/Index/index.php
lib/test/core/Search/Query/index.php
lib/test/core/Search/Formatter/index.php
lib/test/core/Search/GlobalSource/index.php
lib/test/core/Search/index.php
lib/test/core/TikiDb/index.php
lib/test/core/WikiParser/index.php
lib/test/core/Multilingual/Aligner/index.php
lib/test/core/Multilingual/MachineTranslation/index.php
lib/test/core/Multilingual/index.php
lib/test/core/Connect/index.php
lib/test/core/TikiFilter/index.php
lib/test/core/Reports/Send/index.php
lib/test/core/Reports/fixtures/index.php
lib/test/core/Reports/index.php
lib/test/core/Request/index.php
lib/test/core/Services/index.php
lib/test/core/index.php
lib/test/core/JitFilter/index.php
lib/test/core/DeclFilter/index.php
lib/test/core/Transition/index.php
lib/test/shipping/index.php
lib/test/Calendar/index.php
lib/test/editlib/index.php
lib/test/reporstlib/index.php
lib/test/reportslib/index.php
lib/test/attributes/index.php
lib/test/comments/index.php
lib/test/freetag/index.php
lib/test/smarty_tiki/index.php
lib/test/IntegrationTests/index.php
lib/test/wiki-plugins/index.php
lib/test/index.php
lib/test/rating/index.php
lib/test/AcceptanceTests/utils/index.php
lib/test/AcceptanceTests/index.php
lib/test/payment/index.php
lib/test/TikiLib/index.php
lib/test/importer/fixtures/index.php
lib/test/importer/index.php
lib/test/language/FileType/index.php
lib/test/language/fixtures/index.php
lib/test/language/index.php
lib/test/language/WriteFile/index.php
lib/accounting/index.php
lib/codemirror_tiki/mode/r/index.php
lib/codemirror_tiki/mode/tiki/index.php
lib/codemirror_tiki/mode/index.php
lib/codemirror_tiki/index.php
lib/equation/index.php
lib/shipping/custom/index.php
lib/shipping/ups-wsdl/index.php
lib/shipping/index.php
lib/metadata/index.php
lib/videogals/index.php
lib/credits/index.php
lib/graph-engine/index.php
lib/svg-edit_tiki/index.php
lib/profilelib/index.php
lib/prefs/index.php
lib/setup/index.php
lib/sheet/conf/index.php
lib/sheet/include/org/index.php
lib/sheet/include/org/apicnet/io/OOo/index.php
lib/sheet/include/org/apicnet/io/OOo/objOOo/index.php
lib/sheet/include/org/apicnet/io/index.php
lib/sheet/include/org/apicnet/io/archive/index.php
lib/sheet/include/org/apicnet/util/index.php
lib/sheet/include/org/apicnet/index.php
lib/sheet/include/core/index.php
lib/sheet/include/index.php
lib/dracula/index.php
lib/swfobject/src/index.php
lib/swfobject/index.php
lib/attributes/index.php
lib/swfupload/js/index.php
lib/swfupload/src/index.php
lib/swfupload/index.php
lib/htmlpurifier_tiki/index.php
lib/metrics/index.php
lib/encoding/index.php
lib/jquery_tiki/colorpicker/index.php
lib/jquery_tiki/brosho/index.php
lib/jquery_tiki/tablesorter/index.php
lib/jquery_tiki/tablesorter/themes/tiki/index.php
lib/jquery_tiki/tablesorter/themes/index.php
lib/simile_tiki/index.php
lib/validators/index.php
lib/comments/index.php
lib/images/icons/index.php
lib/images/index.php
lib/minify/index.php
lib/TikiWebdav/Auth/index.php
lib/TikiWebdav/Backend/index.php
lib/TikiWebdav/index.php
lib/TikiWebdav/PathFactories/index.php
lib/parser/index.php
lib/rangy_tiki/index.php
lib/rating/formula/index.php
lib/rating/index.php
lib/webodf/index.php
lib/wiki3d/index.php
lib/importer/index.php
lib/language/js/index.php
lib/language/FileType/index.php
lib/language/WriteFile/index.php
lib/phpseclib_tiki/index.php
lib/multilingual/index.php
lib/ckeditor_tiki/index.php
lib/ckeditor_tiki/ckeditor-icons/index.php
lib/ckeditor_tiki/plugins/autosave/images/index.php
lib/ckeditor_tiki/plugins/autosave/index.php
lib/ckeditor_tiki/plugins/_tikilink/dialogs/index.php
lib/ckeditor_tiki/plugins/_tikilink/index.php
lib/ckeditor_tiki/plugins/index.php
lib/ckeditor_tiki/plugins/tikiwiki/index.php
styles/lite/index.php
styles/snow/Flash/index.php
styles/darkroom/pics/icons/index.php
styles/darkroom/pics/index.php
styles/darkroom/options/small-type/index.php
styles/darkroom/options/index.php
styles/twist/pics/icons/index.php
styles/twist/pics/index.php
styles/coelesce/pics/icons/index.php
styles/coelesce/pics/index.php
styles/thenews/pics/icons/index.php
styles/thenews/pics/index.php
styles/thenews/options/narrow_left_column/index.php
styles/eatlon/options/teal/index.php
styles/eatlon/options/index.php
styles/arcturus/index.php
styles/strasa/img/icons/index.php
styles/strasa/img/index.php
styles/strasa/options/cool/index.php
styles/strasa/options/mono/index.php
styles/tikinewt/pics/icons/index.php
styles/tikinewt/pics/index.php
styles/tikinewt/index.php
temp/public/index.php
templates/draw/index.php
templates/comment/index.php
templates/admin/index.php
templates/tracker_search/index.php
templates/trackeroutput/index.php
templates/wiki-plugins/index.php
templates/tracker/index.php
templates/object/infobox/index.php
templates/report/index.php
templates/tracker_sync/index.php
templates/tracker_todo/index.php
templates/trackerinput/index.php
templates/styles/mobile/index.php
templates/translation/index.php
templates/plugins/index.php

Thanks and sorry my english.
Lito

There are no comments at this time.