Skip to content

Commit

Permalink
Fix .htaccess processing
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesypoof committed Aug 19, 2016
1 parent 549d881 commit fbe376a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion couch/theme/_system/includes/admin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ COUCH.bindPopupAJAX = function( $elements, code ) {
$elements.magnificPopup({
callbacks: {
parseAjax: code ? function( response ) {
response.data = '<div class="popup-blank popup-code"><div class="popup-code-content">' + response.data.replace( "<", "&lt;" ).replace( ">", "&gt;" ) + '</div></div>';
response.data = '<div class="popup-blank popup-code"><div class="popup-code-content">' + response.data.replace( /</g, "&lt;" ).replace( />/g, "&gt;" ).replace( /(?:\r\n|\r|\n)/g, "<br/>" ) + '</div></div>';
} : false
},
closeOnBgClick: false,
Expand Down

0 comments on commit fbe376a

Please sign in to comment.