Commits vergleichen
2 Commits
4c3d78a044
...
a89ee6a1f1
Autor | SHA1 | Datum |
---|---|---|
o.pinke | a89ee6a1f1 | |
o.pinke | 5f58aadcc4 |
|
@ -61,7 +61,7 @@ class ModRewrite_ContentController extends ModRewrite_ControllerAbstract {
|
|||
|
||||
// root dir
|
||||
if (mr_arrayValue($request, 'rootdir', '') !== '') {
|
||||
if (!preg_match('/^[a-zA-Z0-9\-_\/\.]*$/', $request['rootdir'])) {
|
||||
if (!preg_match('/^[a-zA-Z0-9\-_\/.]*$/', $request['rootdir'])) {
|
||||
$sMsg = i18n("The root directory has a invalid format, alowed are the chars [a-zA-Z0-9\-_\/\.]", "cl-mod-rewrite");
|
||||
$this->_oView->rootdir_error = $this->_notifyBox('error', $sMsg);
|
||||
$bError = true;
|
||||
|
@ -242,13 +242,13 @@ class ModRewrite_ContentController extends ModRewrite_ControllerAbstract {
|
|||
$bError = true;
|
||||
}
|
||||
|
||||
$this->_oView->category_separator = clHtmlEntities($categorySeperator);
|
||||
$this->_oView->category_separator = clHtmlentities($categorySeperator);
|
||||
$aMR['cl-mod-rewrite']['category_seperator'] = $categorySeperator;
|
||||
$this->_oView->category_word_separator = clHtmlEntities($categoryWordSeperator);
|
||||
$this->_oView->category_word_separator = clHtmlentities($categoryWordSeperator);
|
||||
$aMR['cl-mod-rewrite']['category_word_seperator'] = $categoryWordSeperator;
|
||||
$this->_oView->article_separator = clHtmlEntities($articleSeperator);
|
||||
$this->_oView->article_separator = clHtmlentities($articleSeperator);
|
||||
$aMR['cl-mod-rewrite']['article_seperator'] = $articleSeperator;
|
||||
$this->_oView->article_word_separator = clHtmlEntities($articleWordSeperator);
|
||||
$this->_oView->article_word_separator = clHtmlentities($articleWordSeperator);
|
||||
$aMR['cl-mod-rewrite']['article_word_seperator'] = $articleWordSeperator;
|
||||
|
||||
// file extension
|
||||
|
@ -258,7 +258,7 @@ class ModRewrite_ContentController extends ModRewrite_ControllerAbstract {
|
|||
$this->_oView->file_extension_error = $this->_notifyBox('error', $sMsg);
|
||||
$bError = true;
|
||||
}
|
||||
$this->_oView->file_extension = clHtmlEntities($request['file_extension']);
|
||||
$this->_oView->file_extension = clHtmlentities($request['file_extension']);
|
||||
$aMR['cl-mod-rewrite']['file_extension'] = $request['file_extension'];
|
||||
} else {
|
||||
$this->_oView->file_extension = '.html';
|
||||
|
@ -288,12 +288,12 @@ class ModRewrite_ContentController extends ModRewrite_ControllerAbstract {
|
|||
$this->_oView->add_startart_name_to_url_chk = ' checked="checked"';
|
||||
$aMR['cl-mod-rewrite']['add_startart_name_to_url'] = 1;
|
||||
if (mr_arrayValue($request, 'add_startart_name_to_url', '') !== '') {
|
||||
if (!preg_match('/^[a-zA-Z0-9\-_\/\.]*$/', $request['default_startart_name'])) {
|
||||
if (!preg_match('/^[a-zA-Z0-9\-_\/.]*$/', $request['default_startart_name'])) {
|
||||
$sMsg = i18n("The article name has a invalid format, allowed are the chars /^[a-zA-Z0-9\-_\/\.]*$/", "cl-mod-rewrite");
|
||||
$this->_oView->add_startart_name_to_url_error = $this->_notifyBox('error', $sMsg);
|
||||
$bError = true;
|
||||
}
|
||||
$this->_oView->default_startart_name = clHtmlEntities($request['default_startart_name']);
|
||||
$this->_oView->default_startart_name = clHtmlentities($request['default_startart_name']);
|
||||
$aMR['cl-mod-rewrite']['default_startart_name'] = $request['default_startart_name'];
|
||||
} else {
|
||||
$this->_oView->default_startart_name = '';
|
||||
|
@ -335,7 +335,7 @@ class ModRewrite_ContentController extends ModRewrite_ControllerAbstract {
|
|||
}
|
||||
$aRouting[$routingDef[0]] = $routingDef[1];
|
||||
}
|
||||
$this->_oView->rewrite_routing = clHtmlEntities($request['rewrite_routing']);
|
||||
$this->_oView->rewrite_routing = clHtmlentities($request['rewrite_routing']);
|
||||
$aMR['cl-mod-rewrite']['routing'] = $aRouting;
|
||||
} else {
|
||||
$this->_oView->rewrite_routing = '';
|
||||
|
|
Laden…
In neuem Issue referenzieren