Comments (8)
They had been removed in Trunk, but they were all added back in during the defractor-refractor .... the package manager was not updated and many mods still use the search for ?> bla bla etc etc ... in the end it seemed like more things would be broken then would be "fixed" for by this update. That said if you want to re-remove them, update pacman et all, and be responsible for any bug reports this creates then go for it.
from smf.
Yep. Then again, mods shouldn't use search for ?>, but position=end, and package manager should interpret it the same way. This might be the wishful "should", of course.
Those two tools should both work without end tags (another "should" :)), since they do already work for css files. Again for position=end.
I'll take a closer look. It's all about testing, methinks.
from smf.
Yep ... mods should do a lot of things .. :P ... as you know the ?> removal is just a grep away ;)
from smf.
Taking a look at the code in package manager, and making a few tests with position=end with it, this is working fine: package manager recognizes it correctly, for any files, php as well as css.
from smf.
So just support for ]]> (I think thats the correct wrong way that's used :P ) has to be added or does that work anyway or do we just those packages fail?
from smf.
Doing a quick test the uninstall details are not reported properly if the closing php tag is removed from the file, maybe it's just an issue I have, but I see in find "?>" (the same happens also during the install, honestly I have never tried with a css, but I assume it is the same) and as operation I see "add before" and an empty code block.
from smf.
Yes, it's the same for .css files, always was (though rarely used and never reported). Might want to change that way of reporting from package manager, though it wasn't a problem.
from smf.
There are also quite a few hidden gems in the code along the lines of '?' . '>' and combos there of ... all of those will need to be found and modified for this to work.
from smf.
Related Issues (20)
- Export PMs/Profile data error. HOT 6
- Language switcher loses post preview and attachments; error with new attachment UI HOT 1
- Attachments UI popup width hardcoded? HOT 12
- SearchAPI-Custom.php - Undefined variable: excludedWord
- Mark read doesn't work for recycled posts HOT 1
- [quote date] and [time] need sanity checks
- 2.1.4 template editor, breaks files HOT 7
- Emojis cannot be used in SMF logo fields
- Unapproving topic in Recycle bin causes error or negative numbers HOT 1
- Can't create NEW post HOT 10
- Unused $txt['avatar_too_big']?
- Mobile View overflow issue. HOT 3
- Paid Subscriptions notification error
- Attachment downloads - if a file has an entity in the filename (e.g., &), it is entity-encoded in the name upon download
- SMTP Email - live server edits vs relay HOT 8
- Members should be able to see login history and profile edits
- There's only one chance to remove image attachments during preview
- PHP 8.3 session_set_save_handler 6 arguments deprecated
- Upgrader: Old protected_alter logic is producing deprecation warnings HOT 2
- Improve error reporting when a loop is detected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smf.