mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 03:53:13 +00:00
1
Makefile
1
Makefile
@@ -23,6 +23,7 @@ clean_assets:
|
|||||||
|
|
||||||
config:
|
config:
|
||||||
@php bin/console compile:configuration
|
@php bin/console compile:configuration
|
||||||
|
@php bin/developer orm:generate-proxies
|
||||||
|
|
||||||
watch:
|
watch:
|
||||||
@echo 'config/configuration.yml' | entr make config
|
@echo 'config/configuration.yml' | entr make config
|
||||||
|
@@ -39,6 +39,12 @@ class media_Permalink_Adapter implements cache_cacheableInterface
|
|||||||
/** @var Application */
|
/** @var Application */
|
||||||
protected $app;
|
protected $app;
|
||||||
|
|
||||||
|
private static $bad_chars = [
|
||||||
|
"\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07",
|
||||||
|
"\x08", "\x09", "\x0A", "\x0B", "\x0C", "\x0D", "\x0E", "\x0F",
|
||||||
|
" ", "/", "\\", "%", "+"
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Application $app
|
* @param Application $app
|
||||||
* @param databox $databox
|
* @param databox $databox
|
||||||
@@ -118,7 +124,7 @@ class media_Permalink_Adapter implements cache_cacheableInterface
|
|||||||
'record_id' => $this->media_subdef->get_record_id(),
|
'record_id' => $this->media_subdef->get_record_id(),
|
||||||
'subdef' => $this->media_subdef->get_name(),
|
'subdef' => $this->media_subdef->get_name(),
|
||||||
/** @Ignore */
|
/** @Ignore */
|
||||||
'label' => str_replace('/', '_', $label),
|
'label' => str_replace(self::$bad_chars, '_', $label),
|
||||||
'token' => $this->get_token(),
|
'token' => $this->get_token(),
|
||||||
]));
|
]));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user