Comments (5)
I forgot to mention that it concerns also e-mail addresses since the @ sign also belongs to the same check procedure. E.g:
F3::set('_str1','E-mail:');
F3::set('_str2','[email protected]');
echo F3::resolve('{{@_str1}} {{@_str2}}');
will output E-mail: '[email protected]'
from fatfree.
This is a known issue. See https://groups.google.com/forum/#!topic/f3-framework/0I4oth-eojY for more information on Google Group.
from fatfree.
Sorry I didn't see it. Anyway there's no mention in that post of the problem with the word 'new'.
Could you (or somebody else) explain the purpose of the following test in F3::resolve ?
!preg_match('/@|\bnew\s+/i',$out)
I'm probably wrong but here's how I see it :
- concerning the '@' test, it seems to be here to prevent evaluating expressions containing F3 variables, although the @-starting F3 variables are handled by the previous preg_replace_callback and therefore should never appear in $out.
- concerning the 'new' test, it looks like an attempt to prohibit object instantiation within templates in order to stick to MVC principles. If that's the case, the benefit of this control has to be balanced against the impossibility of using the word 'new' in the dictionary.
from fatfree.
Please let me know if the latest commit provides finality on this issue
from fatfree.
Yes, it's fixed now. Thanks !
from fatfree.
Related Issues (20)
- Latin locale not available under windows HOT 6
- Dockerized HOT 1
- 'kz' locale trouble HOT 1
- Google Static Maps v2 plug-in HOT 2
- Form data are not being parsed on patch HOT 1
- avoid useless database connections HOT 2
- Sql Mapper: Misleading error message when setting value for non existent field in the mapped table HOT 3
- How to use SQL Mapper save method to insert/update a geometry field type?
- Extend template error
- breakin in the middle of a <repeat> loop in an F3 template file. HOT 2
- Named route incorrectly includes the extra @params in the route HOT 2
- Google Static Maps - is this still a feature? HOT 1
- XDebug? HOT 2
- Custom date format not respecting parameters (PHP8.1) HOT 2
- Remove HTML comments from template (minifying) HOT 5
- Dockerised fatfree redirects broken HOT 3
- @variable ?? '' HOT 1
- SMTP class question HOT 4
- Error in SMTP class // scripts aborts, no error handling possible HOT 1
- bug foundn base.php HOT 1
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 fatfree.