Skip to content

Commit bf0bf34

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-43907-custom-admin-URL-breaks-admin-log' into PR_Branch
2 parents 813fa45 + 462d4de commit bf0bf34

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

setup/view/magento/setup/web-configuration.phtml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $hints = [
2020
),
2121
'admin' => sprintf(
2222
'<p>%s</p>',
23-
'A unique URL helps keep store and customer info safer.'
23+
'A unique URL helps keep your store and customers safer. Use only letters, numbers, and underscore characters.'
2424
)
2525
];
2626
?>
@@ -101,6 +101,7 @@ $hints = [
101101
class="form-el-input"
102102
type="text"
103103
name="admin"
104+
ng-pattern="/^[a-zA-Z0-9_]+$/"
104105
ng-model="config.address.admin"
105106
ng-class="{'invalid' : webconfig.admin.$invalid && webconfig.submitted }"
106107
ng-init="config.address.admin = '<?php echo $this->autoAdminPath ?>';"
@@ -111,8 +112,8 @@ $hints = [
111112
tooltip-append-to-body="true"
112113
>
113114
<div class="error-container">
114-
<span ng-show="webconfig.admin.$error.required">
115-
Please enter a valid admin URL path.
115+
<span ng-show="webconfig.admin.$error">
116+
Please enter a valid admin URL path. Use only letters, numbers, and underscore characters.
116117
</span>
117118
</div>
118119
</div>

0 commit comments

Comments
 (0)