- Post to Hacker News
- Share HN post on Twitter
- Raise $1MM
- Retire
<?php | |
/* | |
* typo3conf/AdditionalConfiguration.php | |
*/ | |
// ... all the other stuff ... | |
if (isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['staticfilecache'])) { | |
$oExtensionConfig = TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(SFC\Staticfilecache\Service\ConfigurationService::class); |
//** Load fonts from this directory. | |
@icon-font-path-custom: "/typo3conf/path/to/your/fonts/"; | |
@font-face { | |
font-family: 'YourFont'; | |
font-style: normal; | |
font-weight: 400; | |
src: url('@{icon-font-path-custom}your-webfont.eot'); | |
src: url('@{icon-font-path-custom}your-webfont.eot?#iefix') format('embedded-opentype'), | |
url('@{icon-font-path-custom}your-webfont.woff') format('woff'), |
It's not only RealURL's problem - although it's most common while users are manipulating this file manually to add custom rules. Anyway this problem also ocures with typo3conf/localconf.php. | |
How to confirm: | |
Right click on the broken image and choose Open image in new window it will open a file with address like: http://somedomain.tld/typo3/thumbs.php?&file=..%2Fuploads%2...etc use some browser to preview the source code ie. in Chrome prepend the address with view-source: like: view-source:http://somedomain.tld/typo3/thumbs.php?&file=...etc. There should not be any whitespaces before the code of image... | |
How to prevent? | |
As you wrote. Check your config files like realurl_conf.php or localconf.php and make sure that there are no spaces before <?php. In case of script ending.... just remove the ?> tag, so script will end automatically without white spaces (even if you'll add 100 empty lines after last line of code), unfortunately sometimes finding this one annoying space in configs takes hours, so.... |
Strong quoting | |
Strong quoting is very easy to explain: | |
Inside a single-quoted string nothing(!!!!) is interpreted, except the single-quote that closes the quoting. | |
echo 'Your PATH is: $PATH' | |
That $PATH won't be expanded, it's interpreted as normal ordinary text, because it's surrounded by strong quotes. | |
In practise that means, to produce a text like Here's my test… as a single-quoted string, you have to leave and re-enter the single-quoting to get the character "'" as literal text: |
############################## | |
## tt_news ################### | |
plugin.tt_news { | |
# Pagebrowser konfigurieren | |
usePiBasePagebrowser = 1 | |
pageBrowser { | |
#maxPages = 5 | |
#tableParams = 0 | |
showPBrowserText = 0 | |
showFirstLast = 1 |
mysqldump --default-character-set=utf8 -udb58799_xxx -pxxxxxxxxxx -hmysql5.xxxxxx.de db58799_xxx > db58799_xxx_1211_v2.sql | |
mysql --default-character-set=utf8 -udb58799_xxx -pxxxxxxxxxx -hmysql5.xxxxxx.de db58799_xxx < db58799_xxx_1211_v2.sql |
find Verz -type d -print0 | xargs -0 chmod 750 | |
find Verz -type f -print0 | xargs -0 chmod 640 |
// in die conlib/db_mysql.inc | |
/* public: connection management */ | |
function connect($Database = "", $Host = "", $User = "", $Password = "") { | |
/* Handle defaults */ | |
if ("" == $Database) | |
$Database = $this->Database; | |
if ("" == $Host) | |
$Host = $this->Host; |
// in die conlib/db_mysql.inc | |
/* public: connection management */ | |
function connect($Database = "", $Host = "", $User = "", $Password = "") { | |
/* Handle defaults */ | |
if ("" == $Database) | |
$Database = $this->Database; | |
if ("" == $Host) | |
$Host = $this->Host; |